diff options
author | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2012-11-19 16:36:33 -0200 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2012-11-19 16:36:33 -0200 |
commit | eb742544b8af9e99209dcf3fac82916df504a5b4 (patch) | |
tree | 1e7c8290c9a7a95045398a30a2702ebbfbbb72c4 /~fauno/spawn-fcgi-php/public_html.conf.example | |
parent | 1c468b79b50fc6c3de26dd08d05010303fadada6 (diff) | |
parent | b8de81d47176637dfd7b9dca164ceea8afe52b56 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to '~fauno/spawn-fcgi-php/public_html.conf.example')
-rw-r--r-- | ~fauno/spawn-fcgi-php/public_html.conf.example | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/~fauno/spawn-fcgi-php/public_html.conf.example b/~fauno/spawn-fcgi-php/public_html.conf.example new file mode 100644 index 000000000..74f6c2b4b --- /dev/null +++ b/~fauno/spawn-fcgi-php/public_html.conf.example @@ -0,0 +1,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 |