Add slash to the base url

Maxim Dounin mdounin at mdounin.ru
Wed Mar 31 17:48:15 MSD 2010


Hello!

On Wed, Mar 31, 2010 at 03:34:51PM +0200, Prateek Dayal wrote:

[...]

> requests. Urls such as http://localhost/anything are redirected to
> http://localhost/anything/ but I am not able to redirect
> http://localhost to http://localhost/
> 
> Am I missing something?

Yes, "http://localhost" and "http://localhost/" are identical from 
HTTP point of view.  It's up to your browser to show it one or 
another way.

Maxim Dounin



More information about the nginx mailing list