proxy_pass http://127.0.0.1:3000;
NPS_VERSION=1.13.35.1-beta
NPS_VERSION=1.13.35.2-stable
возможно ли сделать такой вид редиректа и что бы не было предупреждений
server {
listen 80 default_server;
server_name notice.com;
set $base_root /var/www/notice.com;
root $base_root;
charset UTF-8;
index index.php index.html;
location / {
root $base_root/frontend/web;
try_files $uri $uri/ /frontend/web/index.php$is_args$args;
location ~ ^/assets/.+\.php(/|$) {
deny all;
}
}
location /admin {
alias $base_root/backend/web/;
try_files $uri /backend/web/index.php$is_args$args;
location ~ ^/admin/assets/.+\.php(/|$) {
deny all;
}
}
location ~ ^/.+\.php(/|$) {
rewrite (?!^/((frontend|backend)/web|admin))^ /frontend/web$uri break;
rewrite (?!^/backend/web)^/admin(/.+)$ /backend/web$1 break;
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
}
location ~ /\. {
deny all;
}
}
server {
listen 80;
server_name *.my.com;
location / {
proxy_pass http://2_server_ip;
}
}
server {
listen 443 ssl;
server_name *.my.com;
location / {
proxy_pass https://2_server_ip;
}
}
/views/templates/<?=$_SERVER['HTTP_HOST']?>/
return view($_SERVER['HTTP_HOST'] . '.auth.login');
map $geo{
include path/to/file;
}
server {
if ($geo) {
return 404;
}
}