Quantcast
Channel: Server Support Forum
Viewing all articles
Browse latest Browse all 7443

Konvertierung .htaccess zu Nginx

$
0
0
Hallo,

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

.htaccess
Code:

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
Code:

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

Viewing all articles
Browse latest Browse all 7443