Welcome! Log In Create A New Profile

Advanced

Apache .htaccess to NGINX - Content-Location Headers

Posted by zelus_craft 
Apache .htaccess to NGINX - Content-Location Headers
November 19, 2015 08:16PM
Hi all,

I'm migrating a site from an Apache-based server over to an NGINX one and there's an .htaccess rule that I am finding difficult to migrate. Basically, it's a rewrite based on the Content-Location headers sent by the client in a POST in order to obfuscate some requests:

RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^POST$ [NC]
RewriteCond %{HTTP:Content-Location} ^s.php$ [NC]
RewriteRule . quicksave.php [QSA,L]

I've tried a couple proxy_pass and rewrite configs, but I feel like I am going down the wrong path.

Any help?

Thanks.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 81
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready