Welcome! Log In Create A New Profile

Advanced

Apache .htaccess to NGINX - Content-Location Headers

Posted by zelus_craft 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
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.

Online Users

Guests: 214
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready