location /ttt/ {
proxy_pass http://51.250.10.185:3000;
}
location ~ ^/ttt/ {
proxy_pass http://51.250.10.185:3000;
}
location ^~ /ttt/ {
proxy_pass http://51.250.10.185:3000;
}
server { }
что там и куда поставили. server {
listen 8080;
listen [::]:8080;
server_name 192.168.0.103;
location /ttt/ {
proxy_pass http://51.250.10.185:9292;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache_bypass $http_upgrade;
}
}
nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or inside "limit_except" block in /etc/nginx/conf.d/nginx.conf:17
location ~ ^/ttt/ {
proxy_pass http://51.250.10.185:9292/;
location ~ ^/ttt/ {
proxy_pass http://51.250.10.185:9292;
http://51.250.10.185:9292/
перекидывать абсолютно все запросы?server {
listen 80;
listen [::]:80;
server_name 192.168.0.103;
location /ttt/ {
rewrite ^ / break;
proxy_pass http://51.250.10.185:9292;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache_bypass $http_upgrade;
}
}
location /ttt/ {
rewrite ^ / break;
перекинет все эти запросы на главную.