Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xcir/libvmod-backendutils
This project is deprecated
https://github.com/xcir/libvmod-backendutils
Last synced: 3 months ago
JSON representation
This project is deprecated
- Host: GitHub
- URL: https://github.com/xcir/libvmod-backendutils
- Owner: xcir
- License: other
- Created: 2013-01-24T13:53:17.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-02-03T11:50:49.000Z (over 11 years ago)
- Last Synced: 2024-03-31T09:07:32.486Z (3 months ago)
- Language: C
- Homepage:
- Size: 125 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: COPYING
Lists
- awesome-varnish - Dynamic backend
README
===================
vmod_backendutils
===================-------------------------------
Varnish backend utils
-------------------------------:Author: Syohei Tanaka(@xcir)
:Date: 2013-01-24
:Version: 0.1
:Manual section: 3SYNOPSIS
===========import backendutils;
DESCRIPTION
==============
Add the backend by dynamic.THIS MODULE IS PROOF OF CONCEPT.
EXAMPLE
============::
import backendutils;
backend default {
.host = "192.168.1.1";
.port = "8080";
}
sub vcl_init{
backendutils.initsimple(default);
}
sub vcl_recv{
set req.backend = backendutils.createsimple("dynamicBackend","192.168.1.199","88");
}FUNCTIONS
============INSTALLATION
==================Installation requires Varnish source tree.
Usage::
./autogen.sh
./configure VARNISHSRC=DIR [VMODDIR=DIR]`VARNISHSRC` is the directory of the Varnish source tree for which to
compile your vmod. Both the `VARNISHSRC` and `VARNISHSRC/include`
will be added to the include search paths for your module.Optionally you can also set the vmod install directory by adding
`VMODDIR=DIR` (defaults to the pkg-config discovered directory from your
Varnish installation).Make targets:
* make - builds the vmod
* make install - installs your vmod in `VMODDIR`
* make check - runs the unit tests in ``src/tests/*.vtc``HISTORY
===========COPYRIGHT
=============This document is licensed under the same license as the
libvmod-rewrite project. See LICENSE for details.* Copyright (c) 2013 Syohei Tanaka(@xcir)
File layout and configuration based on libvmod-example
* Copyright (c) 2011 Varnish Software AS