Skip to content

Commit

Permalink
updating the doc
Browse files Browse the repository at this point in the history
  • Loading branch information
marchon committed Dec 28, 2011
1 parent dabba80 commit 124fc11
Showing 1 changed file with 71 additions and 24 deletions.
95 changes: 71 additions & 24 deletions marchon.recipe.apachevhosts/marchon/recipe/apachevhosts/README.txt
@@ -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'




0 comments on commit 124fc11

Please sign in to comment.