Welcome! Log In Create A New Profile

Advanced

Re: subdirs without trailing slash

purabdk
August 13, 2009 06:05AM
Use following lines in your nginx.conf file.


server {
listen 80;
server_name localhost.localdomain;
#charset koi8-r;
#access_log logs/host.access.log main;
server_name_in_redirect off;
optimize_server_names off;

dav_methods PUT DELETE MKCOL COPY MOVE;
dav_access group:rw all:r;
create_full_put_path on;

include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/webdav-extensions.php;
fastcgi_param DEPTH $http_depth;


if (-d $request_filename) { rewrite ^(.*[^/])$ $1/ break; }
if ($request_method = MKCOL) { rewrite ^(.*[^/])$ $1/ break; }

This will solve your problem

--
View this message in context: http://n2.nabble.com/subdirs-without-trailing-slash-tp3282494p3436855.html
Sent from the nginx mailing list archive at Nabble.com.
Subject Author Posted

subdirs without trailing slash

Dick Middleton July 18, 2009 06:33PM

Re: subdirs without trailing slash

Igor Sysoev July 19, 2009 07:04AM

Re: subdirs without trailing slash

Dick Middleton July 19, 2009 02:18PM

Re: subdirs without trailing slash

purabdk August 13, 2009 06:05AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready