Module for the apache webserver with which apache can be used as proxy server. With this module apache can act as a regular proxy, or as a reverse proxy for upstream servers.
Questions tagged [mod-proxy]
689 questions
38
votes
2 answers
Proxy Pass not working
I am attempting to get ProxyPass to work on my OpenSUSE 13.1 install.
I have tried:
a2enmod proxy
a2enmod proxy_http
a2enmod proxy_connect
systemctl restart apache2
systemctl reload apache2
(All combinations of statements to no avail).
I keep…

JosephGarrone
- 481
- 1
- 5
- 8
36
votes
3 answers
How to Exclude an URL for Apache Mod_proxy?
We have two Apache server as front-end and 4 tomcat server as back-end configured using mod_proxy module as load balancer. Now, we want to exclude an single tomcat url from the mod_proxy load balancer. Is there any way or rule to exclude?
Proxy…

Mughil
- 1,929
- 1
- 19
- 28
28
votes
9 answers
Apache2 Proxy timeout
I have Apache2 with PHP + PHP-FPM configured according to:
http://wiki.apache.org/httpd/PHP-FPM
I am writing a script that will take a long time to execute on an internal Vhost, but keep getting timed out, everything runs flawlessly if the script…

wyqydsyq
- 395
- 1
- 3
- 9
23
votes
6 answers
How can I enable logging for requests going through mod proxy
Is there a way to log requests going through mod proxy? I need a way to debug my configuration, because I don't seem to be getting where I should be. I need the following information:
headers of incoming requests
what is being sent to the proxy…

Kariem
- 541
- 2
- 6
- 14
22
votes
3 answers
Intermittent error when using mod_proxy to do reverse proxy to SOAP service
I get this error every few minutes when using mod_proxy as a reverse proxy to a SOAP web service. There's probably 3 or 4 requests going per seconds so we're talking around 1 or 2 out of every thousand that have this error.
[Tue Nov 23 11:44:14…

JOTN
- 1,747
- 1
- 10
- 12
20
votes
1 answer
Do Proxypass Directives need a ProxyPassReverse Directive?
Do all ProxyPass Directives need a ProxyPassReverse Directive?
ProxyPass / http://foo.example.com:8080/
ProxyPassReverse / http://www.example.com/
I saw this snippet, and understand that all traffic coming to foo.example.com is proxied to…

theTuxRacer
- 549
- 2
- 9
- 22
18
votes
2 answers
What is the use of ProxyPassReverse Directive
Definition from apache.org says:
This directive lets Apache httpd adjust the URL in the Location, Content-Location and URI headers on HTTP redirect responses. This is essential when Apache httpd is used as a reverse proxy (or gateway) to avoid…

SnowmanOnFire
- 193
- 1
- 1
- 6
18
votes
3 answers
Apache proxy not working for a localhost port
I have Apache 2.2.15 running on port 80 and want to proxy a servlet engine on localhost port 8983. I have the setup running on another server, but have moved to a CentOS 6 machine. It's not working on the new machine. My virtual host…

ksclarke
- 403
- 1
- 3
- 10
17
votes
2 answers
Apache URL rewriting in reverse proxy
I'm deploying Apache in front of a Karaf-hosted application (Apache and Karaf are on separate servers). I want Apache to operate as a reverse proxy and also to hide part of the URL.
The URL to get the log-in page of the application directly from…

Jeremy Gooch
- 433
- 1
- 4
- 11
15
votes
1 answer
serve all requests via proxy *except* a specific one
I have the following in my httpd.conf
ServerName foo.org
ServerAlias www.foo.org
Options FollowSymLinks MultiViews
Order allow,deny
Allow from all
AllowOverride All
…

punkish
- 313
- 2
- 4
- 9
13
votes
3 answers
Help me understand how to use ProxyPass
UPDATE: I added a revised question after playing around with it two answers below.
Hi there,
If you're reading this you're probably familiar with Apache's mod_proxy and its ProxyPass function. Like many others, I have the issue of having an…
Bartek
13
votes
3 answers
proxy: pass request body failed
I'm trying to enable proxy virtualhost:
ServerName xxxxx.domain.tdl
SSLProxyEngine On
SSLProxyCheckPeerCN on
ProxyPass / https://localhost:1234
ProxyPassReverse / https://localhost:1234
But i've an 500…

bux
- 626
- 2
- 6
- 20
12
votes
1 answer
Apache httpd error "proxy: ap_get_scoreboard_lb" with ProxyPass
I set up apache to proxy for tomcat but I am getting the following error when I target the page. I sometimes get a blank page or a 503:
[Error]
[Mon Dec 03 04:58:16 2012] [error] proxy: ap_get_scoreboard_lb(2) failed in child 29611 for worker…

Dark Star1
- 1,385
- 7
- 22
- 37
12
votes
2 answers
Apache mod_proxy vs mod_rewrite
What is the difference between using mod_proxy and mod_rewrite?
I have a requirement to send certain url patterns through the tomcat, which runs on the same host but under port 8080. I know this is something for mod_proxy, but I"m wondering why I…

Scott Klarenbach
- 569
- 2
- 8
- 20
11
votes
1 answer
How can I configure mod_proxy not specifically not cache 503 errors?
This is my mod_proxy config:
Order deny,allow
Allow from all
ProxyPass /manage/ http://localhost:9000/manage/
ProxyPassReverse /manage/ http://localhost:9000/manage/
I find that whenever the…

ripper234
- 5,890
- 9
- 41
- 49