ServerAdmin nobody-wolpertinger@nowhere.ws
ServerName {{ sublab_web_server_name }}
ServerAlias www.{{ sublab_web_server_name }}
DocumentRoot /var/www/{{ sublab_web_server_name }}/htdocs/public
AllowOverride None
Require all granted
RewriteEngine On
RewriteRule ^/lounge/?$ /sublounge [R=302]
RewriteRule ^/phantomspeisung/?$ /vokue [R=301]
RewriteRule ^/vokue/?$ /wiki/Phantomspeisung/ [R=301]
RewriteRule ^/cryptocon14(/?|.*)$ https://cryptocon.org/14$1 [R=301,last]
RewriteRule ^/cryptocon15(/?|.*)$ https://cryptocon.org/15$1 [R=301,last]
RewriteRule ^/dump(/?|.*)$ http://dump.sublab.org$1 [R=301,last]
# Allow the drop of .html
RewriteRule ^/([^/\.]+)$ /$1.html
# RewriteLog /tmp/rewrite-log
# RewriteLogLevel 9
ErrorDocument 401 /401.html
ErrorDocument 404 /404.html
SetHandler server-status
Require ip 127.0.0.1
SetHandler server-info
Require ip 127.0.0.1
Redirect 301 /sublab_status.json /status.json
Header set Access-Control-Allow-Origin *
Header set Cache-Control no-cache
Header set Access-Control-Allow-Origin *
Header set Cache-Control no-cache
Header set Cache-Control no-cache
Header set Cache-Control no-cache
Header set Cache-Control no-cache
Header set Cache-Control no-cache
Header set Cache-Control no-cache
Header set Cache-Control no-cache
Header set Cache-Control no-cache
Header set Cache-Control no-cache
Header set Cache-Control no-cache