| | |
| | | ServerAdmin webmaster@<tmpl_var name='domain'> |
| | | |
| | | ErrorLog <tmpl_var name='document_root'>/log/error.log |
| | | |
| | | <tmpl_if name='errordocs' op='==' value='y'> |
| | | |
| | | ErrorDocument 400 /error/invalidSyntax.html |
| | | ErrorDocument 401 /error/authorizationRequired.html |
| | | ErrorDocument 403 /error/forbidden.html |
| | |
| | | ErrorDocument 405 /error/methodNotAllowed.html |
| | | ErrorDocument 500 /error/internalServerError.html |
| | | ErrorDocument 503 /error/overloaded.html |
| | | </tmpl_if> |
| | | |
| | | </tmpl_if> |
| | | <Directory {tmpl_var name='web_document_root_www'}> |
| | | Options None |
| | | AllowOverride Indexes AuthConfig Limit FileInfo |
| | |
| | | |
| | | RewriteEngine on |
| | | <tmpl_loop name="redirects"> |
| | | |
| | | RewriteCond %{HTTP_HOST} ^<tmpl_var name='rewrite_domain'> [NC] |
| | | RewriteRule ^/(.*)$ <tmpl_var name='rewrite_target'>$1 [<tmpl_var name='rewrite_type'>] |
| | | </tmpl_loop> |
| | | </tmpl_if> |
| | | <tmpl_if name='php' op='!=' value=''> |
| | | |
| | | php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@<tmpl_var name='domain'>" |
| | | #php_admin_value open_basedir <tmpl_var name='web_document_root'>:/usr/share/php5 |
| | | php_admin_value upload_tmp_dir <tmpl_var name='web_document_root'>/tmp |
| | | php_admin_value session.save_path <tmpl_var name='web_document_root'>/tmp |
| | | </tmpl_if> |
| | | <tmpl_var name='apache_directives'> |
| | | |
| | | </VirtualHost> |
| | | |
| | | |
| | | |
| | | <tmpl_if name='ssl_enabled'> |
| | | |
| | | <IfModule mod_ssl.c> |
| | | ########################################################### |
| | | # SSL Vhost |
| | |
| | | ServerAdmin webmaster@<tmpl_var name='domain'> |
| | | |
| | | ErrorLog <tmpl_var name='document_root'>/log/error.log |
| | | |
| | | |
| | | <tmpl_if name='errordocs' op='==' value='y'> |
| | | ErrorDocument 400 /error/invalidSyntax.html |
| | | ErrorDocument 401 /error/authorizationRequired.html |
| | |
| | | RewriteRule ^/(.*)$ <tmpl_var name='rewrite_target'>$1 [<tmpl_var name='rewrite_type'>] |
| | | </tmpl_loop> |
| | | </tmpl_if> |
| | | <tmpl_if name='php' op='!=' value=''> |
| | | |
| | | php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@<tmpl_var name='domain'>" |
| | | #php_admin_value open_basedir <tmpl_var name='web_document_root'>:/usr/share/php5 |
| | | php_admin_value upload_tmp_dir <tmpl_var name='web_document_root'>/tmp |
| | | php_admin_value session.save_path <tmpl_var name='web_document_root'>/tmp |
| | | </tmpl_if> |
| | | |
| | | </VirtualHost> |
| | | </IfModule> |