Commit 1a8e501d authored by Łukasz Nowak's avatar Łukasz Nowak

- do not use configuration section in templates, use local part parameters


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36818 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a4e6a22c
...@@ -23,11 +23,18 @@ mode = 755 ...@@ -23,11 +23,18 @@ mode = 755
recipe = collective.recipe.template recipe = collective.recipe.template
input = ${software_definition:software_home}/templates/httpd.vhost.conf.in input = ${software_definition:software_home}/templates/httpd.vhost.conf.in
output = ${buildout:var-directory}/etc/httpd.vhost.conf output = ${buildout:var-directory}/etc/httpd.vhost.conf
httpd_port = ${configuration:httpd_port}
httpd_htdocs = ${configuration:httpd_htdocs}
httpd_vhost_rewrite_rules = ${configuration:httpd_vhost_rewrite_rules}
[apache-conf] [apache-conf]
recipe = collective.recipe.template recipe = collective.recipe.template
input = ${software_definition:software_home}/templates/httpd.conf.in input = ${software_definition:software_home}/templates/httpd.conf.in
output = ${buildout:var-directory}/etc/httpd.conf output = ${buildout:var-directory}/etc/httpd.conf
httpd_port = ${configuration:httpd_port}
httpd_htdocs = ${configuration:httpd_htdocs}
httpd_cgibin = ${configuration:httpd_cgibin}
httpd_extra_conf = ${configuration:httpd_extra_conf}
[apache-instance] [apache-instance]
depends = depends =
......
ServerRoot "${software_definition:software_home}/parts/apache" ServerRoot "${software_definition:software_home}/parts/apache"
#Listen 12.34.56.78:80 #Listen 12.34.56.78:80
Listen ${configuration:httpd_port} Listen ${:httpd_port}
# LoadModule foo_module modules/mod_foo.so # LoadModule foo_module modules/mod_foo.so
LoadModule authn_file_module modules/mod_authn_file.so LoadModule authn_file_module modules/mod_authn_file.so
...@@ -86,7 +86,7 @@ Group daemon ...@@ -86,7 +86,7 @@ Group daemon
ServerAdmin you@example.com ServerAdmin you@example.com
DocumentRoot "${configuration:httpd_htdocs}" DocumentRoot "${:httpd_htdocs}"
<Directory /> <Directory />
Options FollowSymLinks Options FollowSymLinks
...@@ -95,7 +95,7 @@ DocumentRoot "${configuration:httpd_htdocs}" ...@@ -95,7 +95,7 @@ DocumentRoot "${configuration:httpd_htdocs}"
Deny from all Deny from all
</Directory> </Directory>
<Directory "${configuration:httpd_htdocs}"> <Directory "${:httpd_htdocs}">
Options Indexes FollowSymLinks Options Indexes FollowSymLinks
AllowOverride None AllowOverride None
Order allow,deny Order allow,deny
...@@ -129,10 +129,10 @@ LogLevel warn ...@@ -129,10 +129,10 @@ LogLevel warn
</IfModule> </IfModule>
<IfModule alias_module> <IfModule alias_module>
ScriptAlias /cgi-bin/ "${configuration:httpd_cgibin}" ScriptAlias /cgi-bin/ "${:httpd_cgibin}"
</IfModule> </IfModule>
<Directory "${configuration:httpd_cgibin}"> <Directory "${:httpd_cgibin}">
AllowOverride None AllowOverride None
Options None Options None
Order allow,deny Order allow,deny
...@@ -154,6 +154,6 @@ SSLRandomSeed startup builtin ...@@ -154,6 +154,6 @@ SSLRandomSeed startup builtin
SSLRandomSeed connect builtin SSLRandomSeed connect builtin
</IfModule> </IfModule>
${configuration:httpd_extra_conf} ${:httpd_extra_conf}
Include ${buildout:var-directory}/etc/*.vhost.conf Include ${buildout:var-directory}/etc/*.vhost.conf
<VirtualHost *:${configuration:httpd_port}> <VirtualHost *:${:httpd_port}>
ServerName localhost ServerName localhost
DocumentRoot ${configuration:httpd_htdocs} DocumentRoot ${:httpd_htdocs}
HostnameLookups Off HostnameLookups Off
UseCanonicalName Off UseCanonicalName Off
ServerSignature Off ServerSignature Off
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
ProxyVia on ProxyVia on
ProxyTimeout 1200 ProxyTimeout 1200
${configuration:httpd_vhost_rewrite_rules} ${:httpd_vhost_rewrite_rules}
<Location "/"> <Location "/">
Order Allow,Deny Order Allow,Deny
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment