Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nginx rewrite proxy_pass

location /foo {
    rewrite ^/foo(/.*)$ /some/path$1 break;
    proxy_pass http://external-server-IP:8080;
}
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #nginx #rewrite
ADD COMMENT
Topic
Name
7+7 =