]> jfr.im git - irc/rizon/qchat.git/blob - apache.conf
This url rewriting thing is a bad idea, just use SSL only
[irc/rizon/qchat.git] / apache.conf
1 nonssl:
2 Redirect permanent / https://qchat.rizon.net
3
4 ssl:
5 Header always set Access-Control-Allow-Origin "*"
6 Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
7 Header always set Access-Control-Max-Age "1000"
8 Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
9
10 RewriteEngine On
11 RewriteCond %{REQUEST_METHOD} OPTIONS
12 RewriteRule ^(.*)$ $1 [R=200,L]
13
14 ProxyPass / http://127.0.0.1:8080/
15 ProxyPassReverse / http://127.0.0.1:8080/