rewrite - nginx proxy_pass not work with subdirectory -


i want rewrite , proxy every url configure, url not proxy: http://example.com/qwe/ewq , proxy work when use this: http://example.com . think 1 solution remove else url. 1 rewrite , not redirect. ... nginx.conf:

server {         listen       10.10.10.10:9999;         server_name  _;  #       set $test_uri http://example.com ; #       set $test_uri $scheme://$host$request_uri;  #       if ($test_uri != $scheme://$host$uri) { #               rewrite ^ $scheme://$host$uri permanent; #       }  #       if (-e $args) { #               set $args /; #       }  #       if ($request_uri != $test_uri) { #               rewrite ^ http://example.com; #       }  #       location /(.*) { #               rewrite ^ http://example.com ; #               }  #       rewrite ^http://(.*)/(.*)$ http://$1/ last; #       rewrite ^(.*)/(.*) $scheme://$1/ permanent;          location  / {                 #rewrite ^(.*)$ / permanent ;                 proxy_pass      http://192.168.1.10:8080/;                 }   } 


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -