diff options
-rw-r--r-- | config/nginx-ssl.conf-example | 4 | ||||
-rw-r--r-- | config/nginx.conf.example | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/config/nginx-ssl.conf-example b/config/nginx-ssl.conf-example index 6920e0e96..c623c8e96 100644 --- a/config/nginx-ssl.conf-example +++ b/config/nginx-ssl.conf-example @@ -5,7 +5,7 @@ upstream alaveteli { server { listen 443; server_name www.example.com; - root /var/www/alaveteli/public; + root /var/www/alaveteli/alaveteli/public; server_tokens off; @@ -25,7 +25,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Sendfile-Type X-Accel-Redirect; - proxy_set_header X-Accel-Mapping /var/www/alaveteli/cache/zips/production/download=/download; + proxy_set_header X-Accel-Mapping /var/www/alaveteli/alaveteli/cache/zips/production/download=/download; proxy_redirect off; proxy_pass http://alaveteli; } diff --git a/config/nginx.conf.example b/config/nginx.conf.example index bad1484a5..be937b7fd 100644 --- a/config/nginx.conf.example +++ b/config/nginx.conf.example @@ -15,7 +15,7 @@ server { # Set the server name to your domain name if you have multiple nginx servers # running on your machine # server_name www.example.com; - root /var/www/alaveteli/public; + root /var/www/alaveteli/alaveteli/public; server_tokens off; @@ -30,7 +30,7 @@ server { location /download { internal; - alias /var/www/alaveteli/cache/zips/production/download; + alias /var/www/alaveteli/alaveteli/cache/zips/production/download; } location @alaveteli { @@ -39,7 +39,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto http; proxy_set_header X-Sendfile-Type X-Accel-Redirect; - proxy_set_header X-Accel-Mapping /var/www/alaveteli/cache/zips/production/download=/download; + proxy_set_header X-Accel-Mapping /var/www/alaveteli/alaveteli/cache/zips/production/download=/download; proxy_redirect off; proxy_pass http://alaveteli; } |