Y
Size: a a a
CM
A
A
root /home/deploy;
location @back {
proxy_pass http://back;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
}
location / {
try_files $uri/index.html $uri.html $uri @back;
}
location = /index.html {
root /var/www;
}
location ~ ^/(url_on_frontend) {
alias /var/www/;
try_files $uri $uri/ index.html =404;
index index.html index.htm;
}
location ~* ^/static/.*\.(jpg|jpeg|gif|css|png|js|json|ico|eot|svg|ttf|woff|woff2|otf|javascript|unityweb|xml|map|webapp)$ {
root /var/www;
}
ИР
CM
i
ИР
ИР
i
upstream backend {
server 10.10.10.1;
server 10.10.10.2;
server 10.10.10.3;
}
server {
server_name ruhighload.com;
root /var/www/ruhighload;
index index.php;
location ~* \.(php)$ {
fastcgi_pass backend;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
ИР
AN
ИР
AN
ИР
ИР