[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nginx
Subject:    Re: index and location not working together properly?
From:       Ian Hobson <ian.hobson () ntlworld ! com>
Date:       2013-07-26 19:50:29
Message-ID: 51F2D305.3080000 () ntlworld ! com
[Download RAW message or body]

Hi Maxim,

Thank you. That worked a treat.

Regards

Ian

On 26/07/2013 16:25, Maxim Dounin wrote:
> Hello!
>
> On Fri, Jul 26, 2013 at 11:19:45AM +0100, Ian Hobson wrote:
>
> [...]
>
>>      root /home/ian/websites/reseller/htdocs;
>>      # if / then redirect to index.php
>>      location = / {
>>         # serve /index.php
>>         rewrite ^$ /index.php last;
> The rewrite here does nothing as only URI "/" may appear here, and
> it's not matched by the "^$" pattern.
>
> You probably want to change it to
>
>           rewrite ^ /index.php last;
>
> [...]
>


-- 
Ian Hobson
31 Sheerwater, Northampton NN3 5HU,
Tel: 01604 513875
Preparing eBooks for Kindle and ePub formats to give the best reader experience.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic