diff options
author | Christian Franke <nobody@nowhere.ws> | 2015-08-25 19:23:43 +0200 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2015-08-25 19:23:43 +0200 |
commit | af66612e6014bea48458125cda72d73c51bc3c20 (patch) | |
tree | 49cee76d579149a9fd800225303ee31be79cf3eb /roles/sublab_web/templates/server.conf.j2 |
Initial commit
Diffstat (limited to 'roles/sublab_web/templates/server.conf.j2')
-rw-r--r-- | roles/sublab_web/templates/server.conf.j2 | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/roles/sublab_web/templates/server.conf.j2 b/roles/sublab_web/templates/server.conf.j2 new file mode 100644 index 0000000..aee5ab4 --- /dev/null +++ b/roles/sublab_web/templates/server.conf.j2 @@ -0,0 +1,73 @@ +ServerAdmin nobody@nowhere.ws +ServerName {{ sublab_web_server_name }} +ServerAlias www.{{ sublab_web_server_name }} + +DocumentRoot /var/www/{{ sublab_web_server_name }}/htdocs/public + +<Directory /var/www/{{ sublab_web_server_name }}/htdocs/public> + AllowOverride None + Require all granted +</Directory> + +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] + +# Allow the drop of .html +RewriteRule ^/([^/\.]+)$ /$1.html + +# RewriteLog /tmp/rewrite-log +# RewriteLogLevel 9 + +ErrorDocument 401 /401.html +ErrorDocument 404 /404.html + +<Location /server-status> + SetHandler server-status + Require ip 127.0.0.1 +</Location> +<Location /server-info> + SetHandler server-info + Require ip 127.0.0.1 +</Location> +Redirect 301 /sublab_status.json /status.json +<Location /sublab_status.json> + Header set Access-Control-Allow-Origin * + Header set Cache-Control no-cache +</Location> +<Location /status.json> + Header set Access-Control-Allow-Origin * + Header set Cache-Control no-cache +</Location> +<Location /css/nautilus.status.css> + Header set Cache-Control no-cache +</Location> +<Location /css/sublab.status.css> + Header set Cache-Control no-cache +</Location> +<Location /css/trieste.status.css> + Header set Cache-Control no-cache +</Location> +<Location /css/taifun.status.css> + Header set Cache-Control no-cache +</Location> +<Location /api/status> + Header set Cache-Control no-cache +</Location> +<Location /img/thumb.tempgraph.png> + Header set Cache-Control no-cache +</Location> +<Location /img/thumb.street.webcam.jpg> + Header set Cache-Control no-cache +</Location> +<Location /img/street.webcam.jpg> + Header set Cache-Control no-cache +</Location> +<Location /img/tempgraph.png> + Header set Cache-Control no-cache +</Location> |