diff options
Diffstat (limited to 'public_html.conf.example')
-rw-r--r-- | public_html.conf.example | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/public_html.conf.example b/public_html.conf.example new file mode 100644 index 000000000000..9f21c5e9c1d9 --- /dev/null +++ b/public_html.conf.example @@ -0,0 +1,17 @@ +# vi: ft=nginx +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:/run/spawn-fcgi/spawn-fcgi.$username.sock; + fastcgi_index index.php; + include /etc/nginx/fastcgi_params; + #moved to /etc/nginx/fastcgi_params + #fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + } +} |