Commit c6d8d4e7 authored by Julien Schmidt's avatar Julien Schmidt

display link to view green blocking page for non-members

parent 6618fc8c
......@@ -20,6 +20,13 @@ server {
access_log off;
error_log off;
# kill cache
add_header Last-Modified $date_gmt always;
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0' always;
if_modified_since off;
expires off;
etag off;
location = /blocked {
return 301 http://$host$request_uri;
}
......@@ -52,6 +59,13 @@ server {
access_log off;
error_log off;
# kill cache
add_header Last-Modified $date_gmt always;
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0' always;
if_modified_since off;
expires off;
etag off;
location ^~ /.well-known/acme-challenge/ {
default_type "text/plain";
root /var/www/conntest;
......@@ -60,7 +74,12 @@ server {
location = /blocked {
default_type text/html;
alias /var/www/conntest/blocked.html;
alias /var/www/conntest/blocked.html; # TODO: nicer page
}
location = /nomember {
default_type text/html;
alias /var/www/conntest/blocked.html; # TODO: nicer page
}
location = / {
......
......@@ -21,7 +21,7 @@
<div id="info-ip" class="info">Your IP Address is <span id="ip"></span>.</div>
<div id="error-browser" class="error">Your Browser is not supported. Please try another one.</div>
<div id="error-external" class="error">Your IP Address does not belong to the StuStaNet! You seem to be using either mobile Internet or some sort of Proxy or VPN!</div>
<div id="error-proxy" class="error">You are not a StuStaNet member and did not configure the proxy server.</div>
<div id="error-proxy" class="error">You are not a StuStaNet member and did not configure the proxy server. <a href="http://conntest.stustanet.de/nomember">Click here to for further information</a>.</div>
<div id="error-blocked" class="error">Your Internet Access is blocked due to malware or malicious behavior. <a href="http://conntest.stustanet.de/blocked">Click here to view the blocking page with more information</a>.</div>
<div id="error-unknown" class="error">An unknown error occurred. Please contact a network administrator and attach the log at the bottom of this page.</div>
<div id="warn-nat" class="warn">Network Address Translation (NAT) is not working, meaning that many application will not work as expected. However, this is expected, as you do not seem to be a StuStaNet member. NAT is a members-only service.</div>
......
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