Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
71 additions
and
24 deletions.
There are no files selected for viewing
95 changes: 71 additions & 24 deletions
95
marchon.recipe.apachevhosts/marchon/recipe/apachevhosts/README.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,41 +1,88 @@ | |||
.. contents:: | .. contents:: | ||
|
|
||
|
|
||
Summary: buildout recipe that writes apache.conf virtual hosts | |||
|
|||
This is work derived from the work of: juan@grigera.com.ar | |||
|
|||
THANK YOU JUAN - You can see Juans other work at - www.gcommons.org | |||
|
|
||
Getting Started | I forked this project and separated out the content from the gcommons because | ||
Sample Local buildout file | I wanted a separate package with just the apache-virtualhost configurations | ||
|
|
||
-------------------------------------------------------------------------------------------- | *** AND *** | ||
[buildout] | |||
develop = . | |||
parts= makesitedirs apache | |||
http-address = 127.0.0.1:8080 | |||
|
|
||
the original work made a lot of assumptions about how you wanted the configuration | |||
and template files and the documentation was sparse | |||
|
|||
I started this as a documentation contribution - and made so many changes to the | |||
templates - I thought I should break it out. | |||
|
|||
|
|||
|
|
||
[makesitedirs] |
|
||
recipe = z3c.recipe.mkdir | Getting Started | ||
paths = foo/bar | Sample Local buildout file | ||
/darkmatter/site |
|
||
/journalcommons/site | -------------------------------------------------------------------------------------------- | ||
/historicalmaterialism/site | [buildout] | ||
./parts/apache/conf.d/ | develop = . | ||
parts= makesitedirs apache | |||
http-address = 127.0.0.1:8080 | |||
|
|||
|
|||
[makesitedirs] | |||
recipe = z3c.recipe.mkdir | |||
paths = foo/bar | |||
/darkmatter/site | |||
/journalcommons/site | |||
/historicalmaterialism/site | |||
./parts/apache/conf.d/ | |||
|
|||
|
|||
|
|||
|
|||
[apache] | |||
recipe = marchon.recipe.apachevhosts | |||
http-address = ${buildout:http-address} | |||
postfix = test.gcommons.org | |||
outputdir = parts/apache/conf.d/ | |||
vhosts = | |||
darkmatter /darkmatter/site www.darkmatter.info | |||
journalcommons /journalcommons/site www.gcommons.org | |||
historicalmaterialism /historicalmaterialism/site www.historicalmaterialism.org | |||
|
|||
|
|||
-------------------------------------------------------------------------------------------- | |||
|
|||
|
|
||
REQUIRED VARIABLES: | |||
|
|
||
vhosts = | |||
shorthostname path fullhostname | |||
|
|
||
http-address = 127.0.0.1:8080 | |||
|
|
||
[apache] | script-alias = | ||
recipe = marchon.recipe.apachevhosts | /cgibin ./cgibin | ||
http-address = ${buildout:http-address} | /cgi-bin ./cgi-bin | ||
postfix = test.gcommons.org | |||
outputdir = parts/apache/conf.d/ | |||
vhosts = | |||
darkmatter /darkmatter/site www.darkmatter.info | |||
journalcommons /journalcommons/site www.gcommons.org | |||
historicalmaterialism /historicalmaterialism/site www.historicalmaterialism.org | |||
|
|
||
OPTIONAL VARIABLES: | |||
|
|
||
-------------------------------------------------------------------------------------------- | prefix = hostid | ||
postfix = test.yourdomain.net | |||
template = | |||
outputdir = parts/apache/conf.d/ | |||
|
|
||
OPTIONAL VARIABLES - with default values: | |||
|
|
||
absdir = '%s/sitepath' % self.buildout['buildout']['directory'] | |||
listenaddress = '*' | |||
listenport = '80' | |||
url = 'localhost' | |||
serveradmin = 'webmaster@%s' % url | |||
reldir = absdir | |||
ProxyRequests = 'Off' | |||
ProxyPath = 'http://localhost:8000' | |||
|
|
||
|
|