summaryrefslogtreecommitdiff
path: root/~fauno/spawn-fcgi-php/public_html.conf.example
blob: 74f6c2b4b436e1401dfd302a787e389684bc6221 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
location ~ ^/~([^/]+)(/?.*)$ {
	set $username $1;
    alias /home/$1/public_html/$2;
    autoindex on; 
	location ~ \.php {
		#fastcgi_pass  127.0.0.1:9000;
		# or for multiusers, one port per user
		fastcgi_pass  127.0.0.1:$port;
		# or for unix domain sockets
		#fastcgi_pass unix:/var/run/spawn-fcgi/spawn-fcgi.$username.sock;
		fastcgi_index  index.php;
		fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
		include /etc/nginx/conf/fastcgi_params;
	}
}
# vi: ft=nginx