F5F Stay Refreshed Software Operating Systems Linux Apache reverse proxy configuration Optimize web traffic handling with Apache as a reverse proxy on Linux.

Linux Apache reverse proxy configuration Optimize web traffic handling with Apache as a reverse proxy on Linux.

Linux Apache reverse proxy configuration Optimize web traffic handling with Apache as a reverse proxy on Linux.

J
Jarzzermann
Posting Freak
788
07-21-2025, 08:44 PM
#1
I've got an apache server running a couple of wordpress websites and also a reverse proxy to another server which I use for testing. However, if the test server which the reverse proxy points to goes down, it brings all the websites down with the error of; The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Is there any way to stop the reverse proxy bringing down all the sites if the reverse proxy cant find the site? Here is my reverse proxy config; <IfModule mod_proxy.c> ProxyRequests Off ProxyPreserveHost On ProxyReceiveBufferSize 4096 <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://testsite.co.uk/ ProxyPassReverse / http://testsite.co.uk/ <Location /> Order allow,deny Allow from all </Location>
J
Jarzzermann
07-21-2025, 08:44 PM #1

I've got an apache server running a couple of wordpress websites and also a reverse proxy to another server which I use for testing. However, if the test server which the reverse proxy points to goes down, it brings all the websites down with the error of; The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Is there any way to stop the reverse proxy bringing down all the sites if the reverse proxy cant find the site? Here is my reverse proxy config; <IfModule mod_proxy.c> ProxyRequests Off ProxyPreserveHost On ProxyReceiveBufferSize 4096 <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://testsite.co.uk/ ProxyPassReverse / http://testsite.co.uk/ <Location /> Order allow,deny Allow from all </Location>

A
alex4max
Member
72
07-21-2025, 08:44 PM
#2
It seems better to configure a dedicated Apache server with the reverse proxy running on the test machine. This way, the test setup stays isolated from your production system. Keeping environments distinct is a solid approach.
A
alex4max
07-21-2025, 08:44 PM #2

It seems better to configure a dedicated Apache server with the reverse proxy running on the test machine. This way, the test setup stays isolated from your production system. Keeping environments distinct is a solid approach.

D
Destruct1
Member
58
07-21-2025, 08:44 PM
#3
Looks like i've sorted it, if the server goes down it doesn't bring down the rest of the websites, here is my reverse proxy config; <VirtualHost *:80> ServerAdmin [email protected] ProxyRequests off DocumentRoot /var/www ProxyPreserveHost On ServerName testsite.co.uk <Location /> ProxyPass http://testsite.co.uk/ ProxyPassReverse http://testsite.co.uk/ Order allow,deny Allow from all </Location> </VirtualHost>
D
Destruct1
07-21-2025, 08:44 PM #3

Looks like i've sorted it, if the server goes down it doesn't bring down the rest of the websites, here is my reverse proxy config; <VirtualHost *:80> ServerAdmin [email protected] ProxyRequests off DocumentRoot /var/www ProxyPreserveHost On ServerName testsite.co.uk <Location /> ProxyPass http://testsite.co.uk/ ProxyPassReverse http://testsite.co.uk/ Order allow,deny Allow from all </Location> </VirtualHost>