summarylogtreecommitdiffstats
path: root/public_html.conf.example
diff options
context:
space:
mode:
authorPiotr Rogoża2015-06-14 15:06:00 +0200
committerPiotr Rogoża2015-06-14 15:06:00 +0200
commit719ead9a2e785c67f7701bd56326f9cb8bceb66a (patch)
treeb122af7ad80d83dba48756859490255d8ca14893 /public_html.conf.example
downloadaur-spawn-fcgi-php.tar.gz
Initial import
Diffstat (limited to 'public_html.conf.example')
-rw-r--r--public_html.conf.example17
1 files changed, 17 insertions, 0 deletions
diff --git a/public_html.conf.example b/public_html.conf.example
new file mode 100644
index 00000000000..9f21c5e9c1d
--- /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;
+ }
+}