Remove reverse proxy


I’m using multiple VMs with multiple uses for each VM. One VM takes care of the reverse proxy for all the other VMs. However, because I’m now getting - I can’t reverse proxy it to domain.tld/plexpy through the other VM.

I’m trying it like this:

location /plexpy/  {
        proxy_set_header Host               $host;
        proxy_set_header X-Real-IP          $remote_addr;
        proxy_set_header X-Remote-Port      $remote_port;
        proxy_set_header X-Forwarded-Host   $server_name;
        proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto  $scheme;
        proxy_set_header X-Forwarded-Ssl    on;

It does work if I use proxy_pass; (which is a non-reverse proxied plexpy on a different VM) so I would like to “disable” reverse proxy on the quickbox VMs.

Couldn’t you simply remove the /etc/apache2/sites-enabled/plexpy.conf file and restart apache to achieve this?

Tried that, getting ERR_CONNECTION_REFUSED when then trying to go do

Universal binds are disabled in all the rev proxy configurations to prevent bypassing apache auths.

Find http_host in config.ini and change it back to from localhost.

1 Like