Problems with fastcgi php migration
Igor Sysoev
is at rambler-co.ru
Mon Mar 10 21:10:51 MSK 2008
On Mon, Mar 10, 2008 at 02:04:23PM -0400, Ian M. Evans wrote:
> Igor Sysoev wrote:
> >Yes,
> >
> > location /galleries/ {
> > fastcgi stuff
> > }
> >
> >or you may use single regex:
> >
> > location ^/(galleries|poll|news)/ {
> > fastcgi stuff
> > }
>
> Unfortunately, I tried both formats and it tosses a 404 when I try and
> go to one of the extensionless files.
First, I forgot '~':
- location ^/(galleries|poll|news)/ {
+ location ~ ^/(galleries|poll|news)/ {
Second, what's about galleries/etc root ?
The order should not have meaning for these 3 locaitons.
> I'm assuming this is the order:
>
> location / {
> ...
> }
>
> location ~ \.(shtml|php)$ {
> ...fastcgi_pass stuff...
> }
>
> location ^/(galleries|poll|news/ {
>
> ...fastcgi_pass stuff...
> }
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list