| | |
| | | <tmpl_if name='alias'> |
| | | ServerAlias <tmpl_var name='alias'> |
| | | </tmpl_if> |
| | | <tmpl_if name='cgi'> |
| | | <tmpl_if name='cgi' op='==' value='y'> |
| | | # cgi enabled |
| | | ScriptAlias /cgi-bin/ <tmpl_var name='document_root'>/cgi-bin/ |
| | | AddHandler cgi-script .cgi |
| | | AddHandler cgi-script .pl |
| | | </tmpl_if> |
| | | <tmpl_if name='ssi'> |
| | | <tmpl_if name='ssi' op='==' value='y'> |
| | | # ssi enabled |
| | | AddType text/html .shtml |
| | | AddOutputFilter INCLUDES .shtml |
| | | </tmpl_if> |
| | | <tmpl_if name='suexec'> |
| | | <tmpl_if name='suexec' op='==' value='y'> |
| | | # suexec enabled |
| | | SuexecUserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'> |
| | | </tmpl_if> |
| | |
| | | # php as cgi enabled |
| | | AddType application/x-httpd-php .php .php3 .php4 .php5 |
| | | </tmpl_if> |
| | | <tmpl_if name='php' op='==' value='fast-cgi'> |
| | | # php as fast-cgi enabled |
| | | AddType application/x-httpd-php .php .php3 .php4 .php5 |
| | | |
| | | ScriptAlias <tmpl_var name='fastcgi_alias'> <tmpl_var name='fastcgi_starter_path'> |
| | | </tmpl_if> |
| | | |
| | | <tmpl_if name="rewrite_enabled"> |
| | | RewriteEngine on |
| | |
| | | </tmpl_loop> |
| | | </tmpl_if> |
| | | |
| | | <tmpl_var name='apache_directives'> |
| | | |
| | | </VirtualHost> |
| | | |
| | | |
| | | |
| | | <tmpl_if name='ssl' op='==' value='y'> |
| | | <tmpl_if name='ssl_enabled'> |
| | | |
| | | <IfModule mod_ssl.c> |
| | | ########################################################### |
| | | # SSL Vhost |
| | | ########################################################### |
| | |
| | | ErrorDocument 405 /error/methodNotAllowed.html |
| | | ErrorDocument 500 /error/internalServerError.html |
| | | ErrorDocument 503 /error/overloaded.html |
| | | |
| | | SSLEngine on |
| | | SSLCertificateFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='domain'>.crt |
| | | SSLCertificateKeyFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='domain'>.key |
| | | <tmpl_if name='has_bundle_cert'> |
| | | SSLCACertificateFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='domain'>.bundle |
| | | </tmpl_if> |
| | | |
| | | <tmpl_if name='alias'> |
| | | ServerAlias <tmpl_var name='alias'> |
| | |
| | | </tmpl_if> |
| | | |
| | | </VirtualHost> |
| | | </IfModule> |
| | | |
| | | </tmpl_if> |