Welcome! Log In Create A New Profile

Advanced

nginx location block

Posted by nnichols38 
nginx location block
November 02, 2012 11:56AM
I have the following location block within my server block -

location / {
rewrite ^/(.*).html$ /index.php?pageShow=$1 last;
}

This is to handle requests for a legacy cms. I need to be able to access a few html files directly (Pinterest verification for example). How can I exclude these files from this rewrite?

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

Click here to login

Online Users

Guests: 168
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready