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
3
votes
3 answers
Apache2 virtual host reverse proxy rewrite asset links
I have a web application running on port 8080 on my server:
myip:8080/app
I have the following config in my httpd.conf
ServerName subdomain.mydomain.com
ServerAlias mydomain.com
ProxyPass /app http://localhost:8080/app/
…

martin
- 131
- 2
- 7
3
votes
3 answers
JBoss7 load balancing with mod_proxy_balancer - session not working
I am trying to set up mod_proxy_balancer for routing requests to 2 jboss7-servers. For the time being I am testing this setup on my local machine, using following config in httpd.conf:
ProxyRequests Off
Order deny,allow
Deny from…

Phil P.
- 51
- 1
- 5
3
votes
3 answers
Unable to configure apache to restrict access by IP for proxy
I added following into my httpd.conf (after VirtualHost):
ServerName XXX.XXX.XXX
Order allow,deny
Allow from 10.52.208.221
Allow from 10.52.208.223
Deny from all
…

alexus
- 13,112
- 32
- 117
- 174
3
votes
2 answers
Using Apache httpd to redirect context path?
I'd like to proxy http://localhost:1006/ as http://example.com/public/ to the outside world. Here is my configuration:
RewriteEngine On
# Append a slash if necessary
RewriteRule ^/public$ public/ [R,L]
# Request headers: Replace…

Gili
- 295
- 1
- 4
- 20
3
votes
1 answer
Secure Apache when using mod_proxy_http and mod_rewrite
We have an Apache server that works as a proxy for apps running on different ports. For example:
domain.com/app1/service1 > localhost:101
domain.com/app1/service2 > localhost:102
domain.com/app2/service1 > localhost:201
Rules to determine…

dgaviola
- 131
- 2
3
votes
2 answers
mod_proxy proxy and redirect to specific path
Today I have two Apache Servers, Server A (192.168.0.5), Server B (192.168.0.10), both running at the same 80 port.
The actual request is from server a and the with my configuration it pass to server b (using mod_proxy), this is working.
Server A…

maxtorzito
- 223
- 1
- 3
- 6
3
votes
1 answer
Mongrel over mod_proxy unacceptably slow
Here is the situation
C:\>ab -n 100 -c 5 http://webserver/track/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation,…

Monban
- 155
- 1
- 10
3
votes
2 answers
Tomcat 7 with mod_jk
I am at cross roads in deciding whether to use mod_jk or mod_proxy for setting up a load balancing system with Apache 2 and Tomcat 7. I read the usual comparison that mod_jk is more powerful but harder to configure, etc. but all that I read is a bit…

Santosh
- 133
- 1
- 4
3
votes
1 answer
Apache2 mod_proxy modifies content-type for some reason
I am using a local proxy using apache2 to do some development work (OSX 10.8):
SSLProxyEngine on
ProxyPass /app https://my.server.org/app
ProxyPass /web https://my.server.org/web
Everything works fine, except Apache2 some how overrides the…

Jeroen Ooms
- 2,239
- 8
- 34
- 51
3
votes
2 answers
Setting timeout for all the ProxyPass mappings in Apache Server mod_proxy directive
What I have and works:
I'm using Apache HTTPD 2.2 for proxy requests. I have multiple ProxyPass mappings:
ProxyRequests On
AddDefaultCharset off
Order deny,allow
Allow from all
ProxyPreserveHost Off
ProxyPass /a…

Raul Rene
- 181
- 1
- 1
- 7
3
votes
1 answer
Mod-proxy with query string alternatives?
I am currently trying to use mod_proxy to make search requests on another server. The remote server requests must be structured as follows:
http://path.to.remote/search.php?key=MYKEY&term=SEARCHTERM
In an effort to obfuscate my access key, I was…

user1026361
- 173
- 1
- 1
- 7
3
votes
1 answer
Atlassian FishEye + Crucible under Reverse Proxy
I have an instance of Atlassian FishEye+Crucible running in a server in a standard HTTP connection. But we need this instance to be also accessed from outside, over a HTTPS connection. Proposed solution? Revese Proxy, what already works fine for…

Guiraldelli
- 161
- 5
3
votes
3 answers
mod_rewrite+proxy closes connections to backend (keepalive)
We have a fairly typical setup: client <-> apache2 (2.2.22) <-> backend (*).
Initially we were using mod_rewrite with the [P] flag in the simplest form:
RewriteEngine On
ProxyPreserveHost On
RewriteRule ^(.*)$…

adamw
- 145
- 1
- 5
3
votes
1 answer
Apache ProxyPass/RewriteRule with p flag: Return no content when response has multi-part content type i.e.images
This is a continuation of a previous question which has been implemented with a little change. Following is the structure I am going to talk about. My goal is to create the Tunnel/Proxy.
port 80 …

FatalError
- 131
- 5
3
votes
1 answer
Obscuring tomcat context path in URL
I've setup an Apache reverse proxy to Tomcat that is working, in that I can load my url and get connection to the Tomcat backend. What I'm attempting to do now is rewrite the URL that a user sees in their browser. Here's my code -
LoadModule …

Matthew Schmitt
- 51
- 1
- 5