drupal try_files php fastcgi

Cliff Wells cliff at develix.com
Mon Mar 16 19:51:55 MSK 2009


http://wiki.nginx.org/NginxJoomla

I find that basic recipe works for a lot of PHP frameworks.

Cliff

On Mon, 2009-03-16 at 09:26 -0700, mike wrote:
> 2009/3/16 Igor Sysoev <is at rambler-co.ru>:
> 
> > Have you @drupal location ?
> 
> This is one thing I want to get up on the wiki cookbook, a simple
> 
> @wordpress
> @drupal
> 
> etc.
> 
> Simple being the key word.
> 
> A lot of people do wordpress crap with wp-content/*.js and all these
> other filters and all you need is a simple
> 
> if (!-e $request_filename) {}
> or
> try_files $uri $uri/ @wordpress
> or
> try_files $uri $uri/ /path/to/main/wordpress/index.php
> 
> etc.
> 
> right now i run my blog using this:
> 
> error_page 404 = /wordpress/index.php?q=$request_uri;
> 
> works like a charm. i do want to start using try_files as I assume
> that is more efficient and not kind of a silly hack "hey, if it's a
> 404, use -this- as the page handler!"
> 






More information about the nginx mailing list