diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/conf/etc/nginx/sites-enabled/default.conf | 4 | ||||
-rw-r--r-- | tools/conf/etc/nginx/sites-enabled/shop.conf (renamed from tools/conf/etc/nginx/sites-enabled/shop.c2.ank.conf) | 6 | ||||
-rw-r--r-- | tools/conf/etc/nginx/sites-enabled/task.conf (renamed from tools/conf/etc/nginx/sites-enabled/task.c2.ank.conf) | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/tools/conf/etc/nginx/sites-enabled/default.conf b/tools/conf/etc/nginx/sites-enabled/default.conf index 4bf7fa7..f7a6928 100644 --- a/tools/conf/etc/nginx/sites-enabled/default.conf +++ b/tools/conf/etc/nginx/sites-enabled/default.conf @@ -32,9 +32,9 @@ server { #proxy_redirect off; #proxy_set_header Host $http_host; -#proxy_set_header X-Forwarded-Host $http_host; +proxy_set_header X-Forwarded-Host $http_host; #proxy_set_header X-Real-IP $remote_addr; -#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; +proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; location /doc { diff --git a/tools/conf/etc/nginx/sites-enabled/shop.c2.ank.conf b/tools/conf/etc/nginx/sites-enabled/shop.conf index 3a0aea1..de34e40 100644 --- a/tools/conf/etc/nginx/sites-enabled/shop.c2.ank.conf +++ b/tools/conf/etc/nginx/sites-enabled/shop.conf @@ -1,7 +1,9 @@ server { listen 8080; - server_name shop.c2.ank; + server_name shop.server.ank; + access_log syslog:server=unix:/dev/log,facility=daemon,tag=nginx_shop,nohostname main; + error_log syslog:server=unix:/dev/log,facility=daemon,tag=nginx_shop_err,nohostname debug; location ~ ^/shop/admin { alias /srv/www/shop/upload/admin; @@ -63,7 +65,7 @@ server { } -location @tribushop { + location @tribushop { rewrite ^/shop/(.+)$ /shop/index.php?_route_=$1 last; } diff --git a/tools/conf/etc/nginx/sites-enabled/task.c2.ank.conf b/tools/conf/etc/nginx/sites-enabled/task.conf index 2d62e96..8b15ee5 100644 --- a/tools/conf/etc/nginx/sites-enabled/task.c2.ank.conf +++ b/tools/conf/etc/nginx/sites-enabled/task.conf @@ -1,6 +1,6 @@ server { listen 8080; - server_name task.c2.ank; + server_name task.server.ank; location /task { index index.php; |