24 lines
796 B
Plaintext
24 lines
796 B
Plaintext
# Serves the app at the vhost root instead of under /wms-app/.
|
|
# Mounted over the image's default site by docker-compose.override.yml.
|
|
<VirtualHost *:80>
|
|
DocumentRoot /var/www/html/wms-app
|
|
|
|
<Directory /var/www/html/wms-app>
|
|
Options -Indexes +FollowSymLinks
|
|
AllowOverride All
|
|
Require all granted
|
|
</Directory>
|
|
|
|
# Never serve deploy artefacts or seeders over HTTP.
|
|
<FilesMatch "^(\.env|docker-compose(\.override)?\.yml|.*\.log|setup\.php|demo_seed.*\.php|finish-deploy\.sh)$">
|
|
Require all denied
|
|
</FilesMatch>
|
|
|
|
# nginx terminates TLS upstream; let PHP know the real scheme so the app
|
|
# does not emit http:// URLs into an https page.
|
|
SetEnvIf X-Forwarded-Proto "^https$" HTTPS=on
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
</VirtualHost>
|