Commit da5732a2 authored by Molly Miller's avatar Molly Miller

conf: unify headers in static. and support. between http and https.

This is another backport from production; not specifying the
Access-Control-Allow-Origin header in the static. vhost broke CSS on plaintext
HTTP for www.adelielinux.org -- I fixed this a few weeks ago, but never got
round to bringing the change into git.
parent 2141f9a6
Pipeline #327 passed with stage
in 7 seconds
......@@ -14,6 +14,11 @@
</VirtualHost>
<VirtualHost *:80>
<IfModule headers_module>
Header always set Access-Control-Allow-Origin "*"
Header always set Cache-Control "max-age=31536000, immutable"
</IfModule>
DocumentRoot "/srv/www/adelie/static"
ServerName static.adelielinux.org
CustomLog /var/log/apache2/access.static.http.log combined
......
......@@ -19,6 +19,11 @@
</VirtualHost>
<VirtualHost *:80>
<IfModule headers_module>
Header always set Access-Control-Allow-Origin "*"
Header always set Cache-Control "max-age=86400;"
</IfModule>
DocumentRoot "/srv/www/adelie/support"
ServerName help.adelielinux.org
ServerAlias support.adelielinux.org
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment