August 28, 2023 01:47PM
Trying to get this config to work for a reverse proxy.

location ~/626a941285b76690973c21d9e5f5587f(.*)$ {
include options.conf;
return 301 $scheme://test.ddns.net$1;
if ($bad_user) {
proxy_pass http://test.ddns.net$1;

How i want it to work is if client ip is specified in $bad_user then client is served via reverse proxy. If client IP is not in $bad_user client is redirected to server without passing via proxy. Can anyone help?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 239
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 466 on July 09, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready