31 lines
864 B
ApacheConf
31 lines
864 B
ApacheConf
# Atomaste Static Site
|
|
Options -Indexes
|
|
|
|
# Redirect old broken URLs to homepage
|
|
RedirectMatch 301 ^/custom-telescope-mirror-support.*$ /
|
|
RedirectMatch 301 ^/product.*$ /
|
|
RedirectMatch 301 ^/shop.*$ /
|
|
|
|
# Redirect to index.html as default
|
|
DirectoryIndex index.html
|
|
|
|
# Enable GZIP compression
|
|
<IfModule mod_deflate.c>
|
|
AddOutputFilterByType DEFLATE text/html text/css application/javascript image/svg+xml
|
|
</IfModule>
|
|
|
|
# Cache static assets
|
|
<IfModule mod_expires.c>
|
|
ExpiresActive On
|
|
ExpiresByType image/png "access plus 1 month"
|
|
ExpiresByType image/svg+xml "access plus 1 month"
|
|
ExpiresByType text/css "access plus 1 week"
|
|
</IfModule>
|
|
|
|
# Security Headers
|
|
<IfModule mod_headers.c>
|
|
Header set X-Content-Type-Options "nosniff"
|
|
Header set X-Frame-Options "SAMEORIGIN"
|
|
Header set Referrer-Policy "strict-origin-when-cross-origin"
|
|
</IfModule>
|