subdirs without trailing slash
Dick Middleton
dick at fouter.net
Sun Jul 19 22:18:04 MSD 2009
Igor Sysoev wrote:
>> I want to make the following equivalent:
>>
>> http://example.com/mail/index.php
>> http://example.com/mail/
>> http://example.com/mail
>> What is the recommended way to configure this?
>
> If you set
>
> location /mail/ {
> fastcgi_pass localhost:8888;
> ...
> }
>
> and request "/mail" then nginx will return external redirect to "/mail/".
It's so easy when you know how.
Many thanks
Dick
More information about the nginx
mailing list