Welcome! Log In Create A New Profile

Advanced

Konvertierung .htaccess zu Nginx

Posted by jochen35 
Konvertierung .htaccess zu Nginx
September 12, 2014 03:51PM
Hallo,

könnt Ihr bitte mal drüber schauen, ob die Konvertierung passt.

.htaccess

RewriteCond %{REQUEST_METHOD} !^(GET|POST)$
RewriteRule ^$ /index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
RewriteRule ^addressbooks /index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
RewriteRule ^calendars /index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
RewriteRule ^principals /index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
RewriteRule ^webdav /index.php?frontend=webdav [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]


Nginx-Konfiguration

if ($request_method !~ "^(GET|POST)$"){
rewrite ^/$ /index.php?frontend=webdav;
rewrite ^/addressbooks /index.php?frontend=webdav;
rewrite ^/calendars /index.php?frontend=webdav;
rewrite ^/principals /index.php?frontend=webdav;
rewrite ^/webdav /index.php?frontend=webdav;
}


Gruß
Jochen
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 67
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready