Problem with nginx rewrite rule

Hello,

Here is the rule from apache

RewriteRule ^ats-plug-helper.php/?$ includes/ats.php

and here is my rule for nginx

rewrite ^/ats-plug-helper.php/?$ /includes/ats.php last ;

I`m using php-fpm for php files.

The problem is url works www.domain.com/ats-plug-helper.php/ but not
with www.domain.com/ats-plug-helper.php

Can you please tell me what i`m missing here ?

Thanks

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,75803,75803#msg-75803

Never mind, i fixed it on my own.

location /ats-plug-helper.php {
rewrite ^/ats-plug-helper.php/?$ /includes/ats.php last ;
}

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,75803,75819#msg-75819

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs