| | |
| | | <tmpl_hook name='apache2_vhost:header'> |
| | | |
| | | <Directory {tmpl_var name='web_basedir'}/{tmpl_var name='domain'}> |
| | | AllowOverride None |
| | |
| | | </tmpl_if> |
| | | </Directory> |
| | | |
| | | <tmpl_loop name="vhosts"> |
| | | <tmpl_loop name='vhosts'> |
| | | <VirtualHost {tmpl_var name='ip_address'}:{tmpl_var name='port'}> |
| | | <tmpl_hook name='apache2_vhost:vhost_header'> |
| | | <tmpl_if name='php' op='==' value='suphp'> |
| | | DocumentRoot <tmpl_var name='web_document_root'> |
| | | </tmpl_else> |
| | |
| | | |
| | | </tmpl_loop> |
| | | <tmpl_if name='ssl_enabled'> |
| | | <tmpl_else> |
| | | <tmpl_if name='rewrite_to_https' op='==' value='y'> |
| | | RewriteCond %{HTTPS} off |
| | | RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
| | |
| | | </IfModule> |
| | | |
| | | <tmpl_var name='apache_directives'> |
| | | <tmpl_hook name='apache2_vhost:vhost_footer'> |
| | | </VirtualHost> |
| | | |
| | | <tmpl_if name='apache_version' op='>=' value='2.4' format='version'> |
| | | <tmpl_if name='ssl_enabled'> |
| | | <IfModule mod_ssl.c> |
| | | SSLStaplingCache shmcb:/var/run/ocsp(128000) |
| | | </IfModule> |
| | | </tmpl_if> |
| | | </tmpl_if> |
| | | |
| | | </tmpl_loop> |
| | | |
| | | <tmpl_hook name='apache2_vhost:footer'> |