Files
davisfe.cz/vhost.conf
David Fencl 065d57a74f
Some checks failed
continuous-integration/drone/push Build is failing
fix(docker): implement multi-stage build and serve dist folder
2025-12-11 19:12:53 +01:00

27 lines
752 B
Plaintext

# File: .docker/apache/vhost.conf
LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
<VirtualHost *:80>
ServerName localhost
DocumentRoot /app/dist
<Directory "/app/dist">
Options Indexes FollowSymLinks Includes execCGI
AllowOverride All
Require all granted
allow from all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>