Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nginx rewrite proxy_pass

location  /foo {
  rewrite /foo/(.*) /$1  break;
  proxy_pass         http://localhost:3200;
  proxy_redirect     off;
  proxy_set_header   Host $host;
}
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #nginx #rewrite
ADD COMMENT
Topic
Name
1+1 =