Path to Apache reverse proxy

Issues related to applications and software problems
Post Reply
Centaro
Posts: 9
Joined: 2019/10/11 14:11:04

Path to Apache reverse proxy

Post by Centaro » 2020/07/25 10:02:46

Hello everyone!

I am trying to set up a reverse proxy, but I cannot figure out which file to use. I guess it is somewhere in /etc/httpd …

On /etc/httpd/conf.modules.d/00-proxy.conf, I can see my proxy modules are all turned on.

But what file do I write directives like these onto?
<VirtualHost *:80>
ServerName domain.tld

Keepalive On

ProxyPreserveHost On

ProxyPass "/" http://127.0.0.1:PORT/ retry=0 timeout=5

ProxyPassReverse / http://127.0.0.1:PORT/
</VirtualHost>

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Path to Apache reverse proxy

Post by TrevorH » 2020/07/25 11:43:37

If you are setting this up for a new domain then create a new file in /etc/httpd/conf.d to define the new site and the parameters you want to use for it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Centaro
Posts: 9
Joined: 2019/10/11 14:11:04

Re: Path to Apache reverse proxy

Post by Centaro » 2020/07/25 12:02:43

It is for a subdomain that I have running on Virtualmin. You say it should be under /etc/httpd/conf.d, but it is not clear to me what the name of the file with the directories should be.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Path to Apache reverse proxy

Post by TrevorH » 2020/07/25 13:06:59

It includes all /etc/httpd/conf.d/*.conf files so it has to be named something.conf. Good practice says you should call it a name that tells you what it does.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply