Welcome! Log In Create A New Profile

Advanced

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

October 02, 2010 07:10PM
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;
fastcgi_pass 127.0.0.1:9000;
}

what else is needed?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

iberkner October 02, 2010 07:10PM

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

António P. P. Almeida October 02, 2010 07:36PM

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

iberkner October 02, 2010 08:28PM

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

edogawaconan October 02, 2010 09:08PM

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

iberkner October 03, 2010 12:34AM

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

iberkner October 03, 2010 12:42AM

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

António P. P. Almeida October 03, 2010 12:44AM

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

edogawaconan October 03, 2010 12:44AM

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

iberkner October 03, 2010 12:52AM

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

António P. P. Almeida October 02, 2010 09:38PM

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

iberkner October 03, 2010 12:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 147
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready