From 0e374743564c61291117c0cd3fe2497d38efcb05 Mon Sep 17 00:00:00 2001 From: Sergei Kolzun Date: Fri, 9 Nov 2012 12:12:27 +1100 Subject: [PATCH] virtualhost configuration file for nginx --- Specific/virtualhosts/baikal.nginx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Specific/virtualhosts/baikal.nginx diff --git a/Specific/virtualhosts/baikal.nginx b/Specific/virtualhosts/baikal.nginx new file mode 100644 index 0000000..f419d90 --- /dev/null +++ b/Specific/virtualhosts/baikal.nginx @@ -0,0 +1,28 @@ +server { + listen 80; + server_name dav.mydomain.com; + + root /var/www/dav.mydomain.com; + index index.php; + + charset utf-8; + + location ~ /(\.ht|Core|Specific) { + deny all; + return 404; + } + + location ~ ^(.+\.php)(.*)$ { + try_files $fastcgi_script_name =404; + fastcgi_split_path_info ^(.+\.php)(.*)$; + fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; + fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; + fastcgi_param PATH_INFO $fastcgi_path_info; + include /etc/nginx/fastcgi_params; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /var/www/nginx-default; + } +} \ No newline at end of file