| <VirtualHost *:{port}> | |
| ServerAdmin {server_admin} | |
| DocumentRoot "{site_path}" | |
| ServerName {server_name} | |
| ServerAlias {domains} | |
| #errorDocument 404 /404.html | |
| ErrorLog "{log_path}/{project_name}-error_log" | |
| CustomLog "{log_path}/{project_name}-access_log" combined | |
| #DENY FILES | |
| <Files ~ (\.user.ini|\.htaccess|\.git|\.env|\.svn|\.project|LICENSE|README.md)$> | |
| Order allow,deny | |
| Deny from all | |
| </Files> | |
| #SSL | |
| <IfModule alias_module> | |
| Alias /.well-known/ /www/wwwroot/java_node_ssl/ | |
| </IfModule> | |
| #PATH | |
| <Directory "{site_path}"> | |
| SetOutputFilter DEFLATE | |
| Options FollowSymLinks | |
| AllowOverride All | |
| {apa_opt} | |
| DirectoryIndex index.html index.htm default.html default.htm | |
| </Directory> | |
| </VirtualHost> |