drupal try_files php fastcgi

mike mike503 at gmail.com
Mon Mar 16 19:26:52 MSK 2009


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