'location' as an alias for 'server'?

lockheed nginx-forum at nginx.us
Tue Nov 4 09:03:07 UTC 2014


I have nginx set up with several servers in /etc/nginx/sites-enabled

However, I want to convert my setup to one domain ***myserver.com*** , so
typing in a browser

    "lalala.com"

will no longer get me to the appropriate ***/usr/share/webapps/lalala***
subfolder.


Therefore, I want to create some kind of bind (if possible) so that if I
type

    "myserver.com/lalala"

it will redirect me to ***/usr/share/webapps*** while still applying all the
configuration from 
***/etc/nginx/sites-enabled/lalala***



Is it doable, or do I have to rewrite all the server files from
/sites-enabled/ as locations?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254563,254563#msg-254563



More information about the nginx mailing list