An zc buildout for build and configure apache
Project description
Code repository: https://svn.plone.org/svn/collective/buildout/plone.recipe.apache
Change history
trunk (2008-06-30)
xxx [Ingeniweb]
0.2.0 (2008-06-30)
Add log_format option to configure apache log [yboussard]
0.1.0 (2008-04-27)
Created recipe with ZopeSkel [Paris sprint 2008].
Detailed Documentation
Building
Supported options
The recipe supports the following options:
- url
URL for an archive containing the Squid sources. Either url or svn has to be specified.
- svn
URL for a subversion repository containing Aapache sources. Either url or svn has to be specified.
- modules
Here you you can specify the extra modules that you want apache to be compiled with. Each module goes in one line. The module name will be appended to the configure statement –con–
Example usage
We’ll start by creating a buildout that uses the recipe:
>>> write('buildout.cfg', ... """ ... [buildout] ... parts = apachebuild ... ... [apachebuild] ... recipe = plone.recipe.apache:build ... url = http://mir2.ovh.net/ftp.apache.org/dist/httpd/httpd-2.2.8.tar.gz ... """ )
Running the buildout gives us:
>>> print system(buildout) Installing apachebuild. apachebuild: Downloading apache tarball. apachebuild: Compiling Apache ...
Configuration
Supported options
The recipe supports the following options:
- mainconfig
location of apache configuration (ex: /etc/apache2/apache2.conf). if no value is provided we use the location of the config file from build recipe
- bind
Hostname and port on which Apache will listen for requests. Syntax is [hostname][:port]. Defaults to 80. If hostname is omitted then Apache will bind to all available interfaces.
- backends
Specifies the backend or backends which will process the requests. The syntax for backends:
<hostname>[/<path>]:<ip address>:<port>
If multiple backends are specified then each backend must include a hostname.
- zope2_vhm_map
zope2_vhm_map Defines a virtual host mapping for Zope servers. This is a list of hostname:ZODB location entries which specify the location inside Zope where the website for a virtual host lives. The syntax for zope servers:
<hostname>:<path>
- log_format
Specify the log format of apache (combined, common) , common is the default
Example usage
We’ll start by creating a buildout that uses the recipe:
>>> write('buildout.cfg', ... """ ... [buildout] ... parts = apacheconfig ... ... [apacheconfig] ... recipe = plone.recipe.apache:config ... mainconfig = /usr/local/apache/config/httpd.conf ... bind = 80 ... backends = plone.org:127.0.0.1:3128 ... zope2_vhm_map = plone.org:/plone ... """)
Running the buildout gives us:
>>> print system(buildout) Installing apacheconfig. ...
Contributors
Paris sprint 2008, Author Carsten Rebbien Youenn Boussard
Download
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for plone.recipe.apache-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3de43fec58c1fb254d61d5f716b481bb9a7e2fc87661d4cffc47a76b91bce3b0 |
|
MD5 | c31a711c240ffd45210390638661033e |
|
BLAKE2b-256 | 5434ce47acf07ebf8d1909bcf49fdc09ebe533d55b28fb9910064c5561b19d67 |
Hashes for plone.recipe.apache-0.2.0-py2.4.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | c89ca8b067aad0044b21d7f4ec74accea8969358e709adbdc033ba49a3389d26 |
|
MD5 | 14a9573239260e9917d492b87720c19e |
|
BLAKE2b-256 | 1622097dbde1519e4a6c78f9a0c7af1217d4548c2a865654500e3af233ec7f27 |