Welcome! Log In Create A New Profile

Advanced

How to configure Nginx to allow 2 different url accessing one path/location

Posted by jefry_alvonsius 
I configured Nginx as reverse proxy for my website. Now i want to configure nginx to serve 2 different url for accessing one location or path.

ex. : URL A : http://example.com/a/ and URL B : http://example.com/b/

I want both URL above will access same location or path in my website such as they both only access the /a path.
Re: How to configure Nginx to allow 2 different url accessing one path/location
July 20, 2013 04:04AM
The alias directive is what you want: http://wiki.nginx.org/HttpCoreModule#alias
Yumi Wrote:
-------------------------------------------------------
> The alias directive is what you want:
> http://wiki.nginx.org/HttpCoreModule#alias


Thank you Yumi for your information. The next question is how to implement this technic if i put the file in other server that was located behind nginx server (reverse proxy) ?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready