Skip to content
Snippets Groups Projects
Commit e07a5953 authored by ale's avatar ale
Browse files

Add CORS headers to noblogs.ai-cdn.net

And disallow all requests that are not static content.
parent 170cba5e
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,24 @@
ServerName noblogs.ai-cdn.net
DocumentRoot /opt/noblogs/www
SetEnvIf X-Forwarded-Proto https HTTPS=on
Header set Access-Control-Allow-Origin "*"
<Directory /opt/noblogs/www>
Options FollowSymLinks
AllowOverride All
Require all granted
Require all denied
</Directory>
<Directory /opt/noblogs/www/wp-content>
Options -Indexes
Require all granted
</Directory>
<Directory /opt/noblogs/www/wp-includes>
Options -Indexes
Require all granted
</Directory>
</VirtualHost>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment