aboutsummaryrefslogtreecommitdiff
path: root/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'nginx.conf')
-rw-r--r--nginx.conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/nginx.conf b/nginx.conf
index 7c34523..34be30d 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -5,9 +5,10 @@ server {
}
server {
- listen 8009;
+ listen 8009 default_server;
server_name xn--trdgrdstomten-cfbr.se;
root /var/www/trädgårdstomten/public;
+ rewrite ^/([^/]+/)*[^.]+[^/]$ $http_x_forwarded_proto://$host$request_uri/ permanent;
set_real_ip_from 127.0.0.1/8;
gzip on;
default_type "text/html";