February 16, 2012 04:57PM
Hello,
I have a very similar problem. I want to use userdirs as in apache and as described here: http://wiki.nginx.org/UserDir and use php with fast-cgi in these userdirs. I've tried it with this:

location ~ ^/~(.+?)(/.*)?$ {
alias /home/$1/public_html$2;
index index.html index.htm;
autoindex on;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}
}

But it get empty pages, when I try to call a php-file.
How can I get php files with match this location to be forwarded to fast-cgi?
Subject Author Posted

UserDir

bhuntington February 01, 2012 11:32AM

Re: UserDir

Edho Arief February 01, 2012 12:28PM

Re: UserDir

Francis Daly February 01, 2012 12:32PM

Re: UserDir

white_gecko February 16, 2012 04:57PM

Re: UserDir

Sven Ludwig February 16, 2012 06:38PM

Re: UserDir

white_gecko February 17, 2012 04:40AM

Re: UserDir

sistematico June 28, 2012 10:23PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 282
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