Url rewriting problem

Hi,
I’m new to nginx, and I need to use many scripts which use apache2
rewrite rules.

One of my script use two htaccess:

find /var/www/vhosts/mysite.com/httpdocs/ -name .htaccess
./manager/install/.htaccess
./manager/.htaccess

./manager/install/.htaccess => RewriteEngine on# exclude real directories and filesRewriteCond %{REQUEST - Pastebin.com

I tried:

location ^~ /install/ {
                root
/var/www/vhosts/mysite.com/httpdocs/manager/install;
                if (!-e $request_filename)
                {
                        return 403;
                }
                rewrite ^domains /index.php?page=domains break;
                rewrite (.*)\.php /index.php?page=$1&$query_string
break;
        }

Result:

so there is a problem.

./manager/.htaccess => RewriteEngine on# exclude real directories and filesRewriteCond %{REQUEST - Pastebin.com

Still didn’t try, i need to setup my script first.

Thanks for your help !

Posted at Nginx Forum: