| load_module /usr/lib/nginx/modules/ngx_http_dav_ext_module.so; |
| |
| error_log /tmp/error.log; |
| pid /tmp/nginx.pid; |
| |
| events { |
| worker_connections 1024; |
| } |
| |
| http { |
| # the following configuration is for redirect test |
| server { |
| listen 127.0.0.1:8081; |
| server_name localhost; |
| access_log /tmp/forward-access.log; |
| error_log /tmp/forward-error.log; |
| |
| location / { |
| if ($request_method = GET) { |
| return 302 http://$server_name:8080$request_uri; |
| } |
| client_max_body_size 1024M; |
| # forward all other requests to port 8080 |
| proxy_pass http://127.0.0.1:8080; |
| } |
| } |
| |
| server { |
| listen 127.0.0.1:8080; |
| server_name localhost; |
| access_log /tmp/access.log; |
| root /tmp/static; |
| |
| location / { |
| client_body_temp_path /tmp; |
| log_not_found off; |
| dav_methods PUT DELETE MKCOL COPY MOVE; |
| dav_ext_methods PROPFIND; |
| create_full_put_path on; |
| client_max_body_size 1024M; |
| } |
| } |
| } |