Welcome! Log In Create A New Profile

Advanced

Configure nginx to display another html file when a file is present

Posted by xtc14 
Configure nginx to display another html file when a file is present
March 31, 2016 12:16PM
Hello

I'm new to nginx

I'm attempting to have nginx redirect a request from a URL to another page that display something like "Deploy is in progress" so that the main URL is not available. I need to do this through a file, have nginx check if the file is present and then show the alternative html file.

I've checked the try_files directive but I don't think that's the route to go, could someone please help?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 107
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