Commit 0f935fcd authored by Łukasz Nowak's avatar Łukasz Nowak

- put all template variables inside of proper part


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36819 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1a8e501d
...@@ -17,6 +17,8 @@ recipe = collective.recipe.template ...@@ -17,6 +17,8 @@ recipe = collective.recipe.template
input = ${software_definition:software_home}/templates/httpd.in input = ${software_definition:software_home}/templates/httpd.in
output = ${buildout:data-bin-directory}/httpd output = ${buildout:data-bin-directory}/httpd
config-path = ${apache-conf:output} config-path = ${apache-conf:output}
binary = ${software_definition:software_home}/parts/apache/bin/httpd
mode = 755 mode = 755
[apache-vhost] [apache-vhost]
...@@ -31,10 +33,14 @@ httpd_vhost_rewrite_rules = ${configuration:httpd_vhost_rewrite_rules} ...@@ -31,10 +33,14 @@ httpd_vhost_rewrite_rules = ${configuration:httpd_vhost_rewrite_rules}
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
server_root = ${software_definition:software_home}/parts/apache
httpd_port = ${configuration:httpd_port} httpd_port = ${configuration:httpd_port}
httpd_htdocs = ${configuration:httpd_htdocs} httpd_htdocs = ${configuration:httpd_htdocs}
httpd_cgibin = ${configuration:httpd_cgibin} httpd_cgibin = ${configuration:httpd_cgibin}
httpd_extra_conf = ${configuration:httpd_extra_conf} httpd_extra_conf = ${configuration:httpd_extra_conf}
error_log = ${buildout:log-directory}/httpd/error_log
access_log = ${buildout:log-directory}/httpd/access_log
include_config = ${buildout:var-directory}/etc/*.vhost.conf
[apache-instance] [apache-instance]
depends = depends =
......
ServerRoot "${software_definition:software_home}/parts/apache" ServerRoot "${:server_root}"
#Listen 12.34.56.78:80 #Listen 12.34.56.78:80
Listen ${:httpd_port} Listen ${:httpd_port}
...@@ -112,7 +112,7 @@ DocumentRoot "${:httpd_htdocs}" ...@@ -112,7 +112,7 @@ DocumentRoot "${:httpd_htdocs}"
Satisfy All Satisfy All
</FilesMatch> </FilesMatch>
ErrorLog "${buildout:log-directory}/httpd/error_log" ErrorLog "${:error_log}"
LogLevel warn LogLevel warn
<IfModule log_config_module> <IfModule log_config_module>
...@@ -124,7 +124,7 @@ LogLevel warn ...@@ -124,7 +124,7 @@ LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule> </IfModule>
CustomLog "${buildout:log-directory}/httpd/access_log" common CustomLog "${:access_log}" common
</IfModule> </IfModule>
...@@ -156,4 +156,4 @@ SSLRandomSeed connect builtin ...@@ -156,4 +156,4 @@ SSLRandomSeed connect builtin
${:httpd_extra_conf} ${:httpd_extra_conf}
Include ${buildout:var-directory}/etc/*.vhost.conf Include ${:include_config}
#!/bin/bash #!/bin/bash
${software_definition:software_home}/parts/apache/bin/httpd -f ${apache-conf:output} $* ${:binary} -f ${:config-path} $*
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