Welcome! Log In Create A New Profile

Advanced

proxy_pass check if 404, and return 404

January 07, 2014 06:02PM
I am using proxy_pass to a dynamic subdomain:

proxy_pass https://$remote_user.mydomain.io

Is it possible to have the proxy_pass check if the response of https://$remote_user.mydomain.io is 404, if so, simply do:

return 404;

I.E. don't proxy, immediately return.
Subject Author Posted

proxy_pass check if 404, and return 404

justink101 January 07, 2014 06:02PM

Re: proxy_pass check if 404, and return 404

Jonathan Matthews January 07, 2014 06:58PM

Re: proxy_pass check if 404, and return 404

Jonathan Matthews January 07, 2014 07:12PM

Re: proxy_pass check if 404, and return 404

Valentin V. Bartenev January 07, 2014 11:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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