summaryrefslogtreecommitdiff
path: root/plugins/nginx/templates/plain_php
diff options
context:
space:
mode:
authormikka <miklos.martin@gmail.com>2012-09-02 15:43:20 +0200
committermikka <miklos.martin@gmail.com>2012-09-02 15:43:20 +0200
commit3ef82a908a10979d9a4d14e0674902c85b14a99e (patch)
tree3c0793436e5e219d36136773f156cffae0e6ee49 /plugins/nginx/templates/plain_php
parent921d2f49ef01acce973980c0aa9c6ffbbd2fbd0b (diff)
downloadzsh-3ef82a908a10979d9a4d14e0674902c85b14a99e.tar.gz
zsh-3ef82a908a10979d9a4d14e0674902c85b14a99e.tar.bz2
zsh-3ef82a908a10979d9a4d14e0674902c85b14a99e.zip
nginx and php-fpm plugins
Diffstat (limited to 'plugins/nginx/templates/plain_php')
-rw-r--r--plugins/nginx/templates/plain_php27
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/nginx/templates/plain_php b/plugins/nginx/templates/plain_php
new file mode 100644
index 000000000..f7995f5d5
--- /dev/null
+++ b/plugins/nginx/templates/plain_php
@@ -0,0 +1,27 @@
+server {
+ root /home/{user}/www/{vhost};
+ index index.php;
+
+ server_name {vhost};
+
+ error_log /var/log/nginx/{vhost}.error.log;
+ access_log /var/log/nginx/{vhost}.access.log;
+
+ location / {
+ try_files $uri $uri/ $uri/index.php;
+ }
+
+ location ~ \.php$ {
+ include fastcgi_params;
+ fastcgi_index index.php;
+ fastcgi_pass 127.0.0.1:{pool_port};
+ fastcgi_split_path_info ^(.+\.php)(/.*)$;
+
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ fastcgi_param HTTPS off;
+ }
+
+ location ~ /\.ht {
+ deny all;
+ }
+}