2 messages in ru.sysoev.nginxsimple rewrite but...
FromSent OnAttachments
Drazen MilosevicJun 26, 2008 3:55 am 
Igor ClarkJun 26, 2008 4:12 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:simple rewrite but...Actions...
From:Drazen Milosevic (dmil@public.gmane.org)
Date:Jun 26, 2008 3:55:50 am
List:ru.sysoev.nginx

i can't get it working.

this is the rule for Apache wich works RewriteRule ^reservation.html$ /reservation.php

In nginx I tried like this rewrite ^.*$ /reservation.php$1 last; and rewrite ^reservation.html$ /reservation.php$1 last; and rewrite ^/reservation.html$ http://www.domain.com/reservation.php$1 permanent;

with hundred variations but to no avail.

I just can't get it working under nginx. It was actually little embarassing sending this to mailing list but....