modified: serv_nginx/nginx/nginx-ssl.conf
add location into 80 server listen
This commit is contained in:
@@ -9,6 +9,19 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
begushiybashkir.ru www.begushiybashkir.ru
|
||||||
|
|
||||||
|
|
||||||
|
location /uploads/ {
|
||||||
|
alias /app/uploads/;
|
||||||
|
expires 1y;
|
||||||
|
add_header Cache-Control "public, immutable";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
@@ -134,11 +147,5 @@ server {
|
|||||||
proxy_read_timeout 600;
|
proxy_read_timeout 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
location /uploads/ {
|
|
||||||
alias /app/uploads/;
|
|
||||||
expires 1y;
|
|
||||||
add_header Cache-Control "public, immutable";
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user