Rewrite rule for nginx from Apache

the_traveller nginx-forum at
Mon May 23 21:18:30 MSD 2011

Hi mr Igor 
I'm sory coz i toke alittle bit too long

so if i have to make any ngnix rule i have to make it like that by ex:

location /Joke/ {
fastcgi_pass ...
fastcgi_param SCRIPT_FILENAME /jokes.php;
fastcgi_param QUERY_STRING $args;

and the Original Apache rule is
RewriteRule ^Joke/.*     jokes.php       [QSA]

sposing that the script is in the public dir  of the ftp 
is my try right??

and also is the three dots in the second line
fastcgi_pass ...
and before the closing tag
 is this is right or i have to remove them ??

thanks alot for ur help
and if i have removed them

Posted at Nginx Forum:,23868,200161#msg-200161

More information about the nginx mailing list