Files
daydream/config/apache-localhost.conf
T
2026-09-04 11:09:34 +02:00

47 lines
1.2 KiB
Plaintext

# Serve https://localhost/daydream/ from the public web root.
#
# Include this from the site VirtualHost (or paste the Alias/Directory block
# into the existing one). Everything outside public/ - lib/, config/, vendor/,
# node_modules/ - stays off the document root and is never web-reachable.
Alias /daydream /var/www/html/daydream/public
<Directory /var/www/html/daydream/public>
Options FollowSymLinks
AllowOverride None
Require all granted
DirectoryIndex index.php
<IfModule mod_headers.c>
# Vite writes content-hashed asset names, so they are safe to pin.
<FilesMatch "\.[0-9a-f]{8,}\.(js|css|woff2?|svg)$">
Header set Cache-Control "public, max-age=31536000, immutable"
</FilesMatch>
</IfModule>
<IfModule mod_brotli.c>
AddOutputFilterByType BROTLI_COMPRESS \
text/html \
text/plain \
text/css \
text/javascript \
application/javascript \
application/json \
application/manifest+json \
image/svg+xml
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE \
text/html \
text/plain \
text/css \
text/javascript \
application/javascript \
application/json \
application/manifest+json \
image/svg+xml
</IfModule>
</Directory>