what's the simplest way to serve php files through an alias?

Ilan Berkner iberkner at gmail.com
Sun Oct 3 03:05:41 MSD 2010

we have a very simple configuration.

server block with location block

php is served through fastcgi and works fine

would like to add something like this:

location /nameofalias/
   alias /usr/local/nameofalias;

but it does not seem to work, static files load fine.

the php location block is like this and works fine for the main location
block of "location /"

        location ~ .php$
                include fcgi;

what else is needed?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20101002/8265503e/attachment-0001.html>

More information about the nginx mailing list