Ticket #238: nginx.conf

File nginx.conf, 1.2 KB (added by vl, 14 years ago)

nginx configuration

Line 
1worker_processes 1;
2worker_rlimit_core 500M;
3working_directory /home/vl/tasks/0034-doc-dav/nginx/;
4events {
5}
6http {
7 #error_log logs/error.log debug;
8 error_log logs/error.log;
9
10 server {
11 listen 10034;
12 server_name localhost;
13
14 include fastcgi.conf;
15 fastcgi_param SCRIPT_FILENAME /var/www/localhost/htdocs-apache/apdav/webdav-extensions.php;
16 fastcgi_param DEPTH $http_depth;
17 fastcgi_param HOST $host;
18 fastcgi_param DESTINATION $http_destination;
19 fastcgi_param OVERWRITE $http_overwrite;
20 fastcgi_param REQUEST_METHOD $request_method;
21
22 location / {
23 root dav/;
24 client_body_temp_path dav_temp;
25
26 #dav_methods put delete mkcol copy move;
27 dav_methods PUT DELETE MKCOL;
28
29 create_full_put_path off;
30 dav_access user:r all:r;
31 autoindex on;
32 if ($request_method ~ ^(PROPFIND|OPTIONS|COPY|MOVE|HEAD)$) {
33 fastcgi_pass localhost:55555;
34 break;
35 }
36
37 if (-d $request_filename) {
38 rewrite ^(.*[^/])$ $1/ break;
39 }
40 if ($request_method = MKCOL) {
41 rewrite ^(.*[^/])$ $1/ break;
42 }
43 }
44 }
45}