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
7
votes
1 answer
ws protocol and apache mod_proxy_wstunnel configuration: error 500
I got an error 500 when trying to access to ws://localhost:8080/ via my Apache2 server. This server runs OpenSuse Leap 42.1 and Apache 2.4.16.
These Apache2 modules are enabled: mod_proxy, mod_proxy_http, mod_proxy_wstunnel.
When the request is…

jack-y
- 171
- 1
- 1
- 2
7
votes
2 answers
In Apache how to define multiple ProxyPass to different servers with the same context-root?
** updated with workaround at bottom of this answer **
I have a requirement for my webapp to proxy to 2 external reporting servers.
So I will have a menu-item for each external reporting server.
But the browser-URL has too look like it's my server…

gotjee
- 89
- 1
- 1
- 5
7
votes
2 answers
Apache httpd workers retry
I have an Apache httpd web server running mod_proxy and mod_proxy_balancer. The whole of /somedir is sent to 2 worker machines which service the requests using the round robin scheduler. Each worker machine is running IIS but I don't think that is…

David Newcomb
- 275
- 1
- 5
- 14
7
votes
3 answers
Apache ProxyPass Missing Images
I have a apache server that sits in front of my glassfish server. mydomain.com goes directly to my static files on apache, than if you hit the subdomain forum.mydomain.com it goes to the glassfish webapp forum/ at 127.0.0.1:8080/forum/. This proxy…

EpicOfChaos
- 185
- 1
- 2
- 6
7
votes
1 answer
Add a header depending on the proxied response code with apache
I use Apache 2.2 with mod_proxy to some 3rd party HTTP server.
As it doesn't send any Cache-Control header, I want to add one of 1 day for response code 200, 5 min for 404 and 0 for any other response code.
So I would something like :
SetEnvIf…

Steve Schnepp
- 2,314
- 3
- 21
- 28
7
votes
2 answers
mod_proxy returns 503 errors even after proxied service is back up
I have a setup with Apache2 as a front-end server for multiple python apps served by gunicorn. My Apache2 setup using mod_proxy looks like this:
ServerName example.com
UseCanonicalName On
ServerAdmin…

Benjamin Wohlwend
- 729
- 2
- 7
- 14
7
votes
2 answers
How to configure mod_proxy_balancer to gracefully fail under high load
We have a system which has one Apache instance in front of multiple tomcats. These tomcats then connect to various databases. We balance the load to the tomcat with mod_proxy_balancer.
Currently we are receiving 100 requests a second, the load on…

bramp
- 230
- 2
- 8
7
votes
4 answers
REMOTE_USER through Apache reverse proxy
I have an Apache webserver with mod_proxy enabled and a Virtualhost, proxy.domain.com. This proxy is configured to prompt the user for credentials with AuthType Basic. Then, the content of web.domain.com is available through the proxy with ProxyPass…

Laurent Nominé
- 567
- 1
- 5
- 16
6
votes
1 answer
Apache Remote proxy for a reverse proxy SNI mismatch
Having an issue with our setup of an Apache-2.2 and a reverse proxy which is proxied to via another device.
flow is:
Apache A -> proxy.abc.net -> Apache B
The error we get on Apache B is
Hostname proxy.abc.net provided via SNI and hostname…

greyhathero
- 61
- 3
6
votes
4 answers
mod_jk or mod_proxy
I tried googling and the only articles I found comparing these two were from 2005 down to 2002. I just set up my first Tomcat instance to run Jira for a project I'm doing. I want to proxy this through port 80 and apache. From what I can tell, I…

brad
- 502
- 1
- 10
- 22
6
votes
2 answers
GitLab CE 7 behind Debian 8/Apache 2 virtual host: can’t access assets
On Debian 8.0 I’m trying to have Apache 2.4.10 manage a GitLab CE 7.10 Omnibus
installation as a virtual host.
Setting and goal
Apache 2 is already set-up and running several virtual hosts that all look like
vhost.example.com.
I want to configure…

Arcturus B
- 200
- 1
- 10
6
votes
1 answer
ProxyPass only if file doesn't exist
I've seen this example:
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://app_cluster%{REQUEST_URI} [P,QSA,L]
I need a similar thing that will delegate to mod_proxy (i.e. do a ProxyPass) when a static file does not…

kaqqao
- 163
- 1
- 5
6
votes
5 answers
mod_proxy -- should I be nervous?
To the best of my knowledge, I have all the mod_proxy stuff disabled on my Apache production server. What's a reasonable way to test or confirm that? Looking at my httpd.conf I can tell you that any line that has "proxy" in it is commented, for what…

Chris_K
- 3,444
- 6
- 43
- 45
6
votes
1 answer
Why are http headers not set when I use proxypass on apache2.2
I have an apache2.2 server with mod_proxy and mod_headers installed. On a request running with a ProxyPass directive, none of the Header set directives work, ie the header's aren't set in the response.
However if I remove the ProxyPass directive…

Glenn Slaven
- 2,400
- 2
- 30
- 42
6
votes
1 answer
How to configure apache's mod_proxy_html to work as an ajax proxy?
I'm trying to build a web site that let's you view and manipulate data from any page in any other website. To do that, I have to bypass 'Allow Origin' problems: i'm loading the other domain's content in an iframe and i have to manipulate its…

Daniel Cerecedo
- 171
- 1
- 5