Need to remove folder name from URL

strtwtsn nginx-forum at
Wed Feb 11 16:35:03 UTC 2015

Will case this's my config

server {
listen 80;
client_max_body_size 4G;
passenger_enabled on;
root /home/<user>/current/public;
rails_env production;
keepalive_timeout 5;

location = / {
proxy_pass<folder>;   // This is to silently redirect
the root of to<folder>

location ~ ^/assets/ {
root /home/<user>/current/public;
    expires max;
    add_header Cache-Control public;
    add_header ETag "";

location /system {
proxy_pass;  // This is to silently redirect to, but to still show in the address bar

location ^~/wcmc {
proxy_pass<folder>;  // This silently redirects to<folder> 

This all works in that

going to gives me the page at<folder>

Clicking the links on the page take me to the correct page on,
but show in the addressbar.


I need to hide the <folder> part of it.

Posted at Nginx Forum:,256577,256584#msg-256584

More information about the nginx mailing list