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.

learn more… | top users | synonyms

12
votes
1answer
12k views

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 ...
11
votes
2answers
30k views

setting up a basic mod_proxy virtual host

I'm trying to set up a basic virtual host to proxy all requests to test.local to a WEBrick server I have running on 127.0.0.1:8080 while keeping all requests to localhost going to my static files in /...
11
votes
7answers
21k views

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 ...
11
votes
2answers
24k views

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 ...
10
votes
3answers
18k views

proxy: pass request body failed

I'm trying to enable proxy virtualhost: <VirtualHost *:80> ServerName xxxxx.domain.tdl SSLProxyEngine On SSLProxyCheckPeerCN on ProxyPass / https://localhost:1234 ProxyPassReverse / ...
9
votes
2answers
28k views

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 ...
9
votes
1answer
9k views

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: ...
8
votes
5answers
35k views

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 ...
8
votes
1answer
4k views

How can I configure mod_proxy not specifically not cache 503 errors?

This is my mod_proxy config: <IfModule mod_proxy.c> <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /manage/ http://localhost:9000/manage/ ProxyPassReverse /manage/ ...
8
votes
1answer
8k views

Apache Httpd Custom ErrorDocument 404 When ProxyPass returned 404

I have an Apache web server in front of another application server, using Proxy Pass. When the request to application returned error 404, I want to show custom error page from the web server not the ...
8
votes
5answers
30k views

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 ...
7
votes
2answers
9k views

Rewriting 302 App Server ReDirect URLs with Apache Proxy in the Middle

I have an odd setup. It looks like this: Browser ----------> HTTPs Proxy ------> Apache HTTP -----> Tomcat AJP HTTPS HTTP AJP On the HTTPS proxy (...
7
votes
3answers
6k views

ProxyPreserveHost on individual proxypass rules

I have two proxypass rules on my web host, one that points to a local varnish instance for caching purposes, which I want ProxyPreserveHost enabled for, and another that points to a third party hosted ...
7
votes
1answer
9k views

mod_deflate - Optimal configuration for most browsers

I was wondering if someone here could help me determine the optimal standard configuration for using mod deflate with Apache. Basically, mod_deflate recommends using the following configuration for ...
7
votes
2answers
17k views

How to configure mod_proxy to ProxyPass based on http vs https?

I have Apache Tomcat running with SSL enabled. I have Apache HTTP Server acting as a reverse proxy so my if users hit http://myserver/tomcat/ they are passed to http://myserver:8080. ProxyPass /...
7
votes
2answers
5k views

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 ...
6
votes
4answers
2k views

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 ...
6
votes
1answer
11k views

Apache ProxyPass or ProxyPassMatch to exclude a file from proxying

I have a VirtualHost set to proxy all requests to another server running on port 9000. What I have : ProxyPass / http://localhost:9000/ ProxyPassReverse / http://localhost:9000/ What I've tried : ...
6
votes
1answer
14k views

Use apache as a HTTPS to HTTP Proxy

I'm trying to configure Apache on Centos 6 to proxy and reverse proxy traffic to an http server of a third party provider. The setup should work like this: https://mydomain.com/proxy/ proxies all ...
6
votes
1answer
3k views

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 ...
5
votes
5answers
5k views

How do I smoothly migrate a web server's DNS from one IP address to another?

I currently have a domain name registered for a Linux/Apache server that I am going to replace with another on a new IP address. Migrating the data will be relatively quick and a 5 minute disruption ...
5
votes
2answers
9k views

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: <VirtualHost *:80> ServerName example.com ...
5
votes
5answers
4k views

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 ...
5
votes
2answers
10k views

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....
5
votes
2answers
4k views

Understanding apache 2.4 mod_proxy_fcgi and RewriteRules in htaccess

We've recently switched one of our web servers to apache 2.4 and running PHP via php-fpm and mod_proxy_fcgi. Most everything works quite well, but there is one problem that I don't understand yet. One ...
5
votes
4answers
2k views

How can I configure Apache to use HTTPS for external access but HTTP for internal access?

I have two servers, one a development server that is accessible internally on our company's local network and the other a public-facing web server. The development server hosts several tools that we ...
5
votes
2answers
2k views

Apache load balancing when the session id is in url

I really have no idea... I have a java web application which stores the session id in URL rather than using cookies. I want to run the application on 2 tomcat servers and fronting them with an Apache ...
5
votes
1answer
12k views

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 ...
5
votes
2answers
1k views

mod proxy not working on apache

I am trying to install Mod_Proxy Apache module on WHM/CPanel CeEntOS Linux Server. Here is system info: CentOS release 5.6 (Final) Server version: Apache/2.2.21 (Unix) Cpanel::Easy::Apache v3.7.2 ...
4
votes
2answers
6k views

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 ...
4
votes
3answers
13k views

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 ...
4
votes
1answer
8k views

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....
4
votes
2answers
4k views

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 ...
4
votes
2answers
870 views

YouTrack on Tomcat 7 using SSL

I have a running YouTrack instance deployed using Tomcat 7 and it works fine on http://example.com:8080/youtrack Apache is already configured to support SSL for the main domain (I have .pem file). ...
4
votes
2answers
31k views

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 ...
4
votes
1answer
7k views

Rewrite URL before passing to proxy Lighttpd

I'm trying to setup a reverse proxy in lighttpd, such that all requests (and only those requests) under /mobile/video is redirected to the / directory of a secondary web server. This is pretty easy in ...
4
votes
1answer
4k views

Apache SSL reverse proxy to a Embed Tomcat

I'm trying to put in place a reverse proxy for an application that is running a tomcat embed server over SSL. The application needs to run over SSL on the port 9002 so I have no way of "disabling SSL" ...
4
votes
1answer
763 views

Apache Reverse Proxy Java Application Server CLOSE_WAIT Connections

I've got Apache setup as a reverse proxy for a Java Application server (GlassFish) and I noticed there are about 100 connections in the state CLOSE_WAIT even on an idle development system: sudo ...
4
votes
0answers
551 views

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 ...
3
votes
3answers
7k views

IPtables block port 8080 but not for localhost

Currently I have an application that is running on 8080 front-ended by mod_proxy. <Location /hudson> Order allow,deny Allow from all ProxyPass http://...
3
votes
2answers
2k views

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 ...
3
votes
1answer
15k views

How to pass a request from one apache server to another

I have two Apache Servers with mod_proxy enabled. I want to know how to "pass the request" from "Apache Server A" to "Apache Server B" using the same port (80). In "server A" with internal ip: 192....
3
votes
1answer
906 views

Split the same virtualhost configuration across multiple files

I have multiple django applications on my server that run each within their own virtualhosts, bound to different ports. (I do this so as to isolate each WSGIProcessGroup). Now I would like to proxy ...
3
votes
1answer
4k views

mod_proxy protocol handler problems

I'm trying to forward incoming web traffic to a Plone server on my Ubuntu set-up using the following rules (based on 'Installing Plone with Apache'): <VirtualHost *:80> ServerAlias www....
3
votes
3answers
3k views

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 <VirtualHost *:80> ServerName subdomain.mydomain.com ServerAlias ...
3
votes
1answer
5k views

proxy: no HTTP 0.9 request (with no host line)

I'm getting a bunch of these errors in my error.log: [client 1.2.3.4] proxy: no HTTP 0.9 request (with no host line) on incoming request and preserver hose set forcing hostname to be www.mydomain....
3
votes
1answer
467 views

is it possible to display contents of an external URL through my website?

I have a domain, mydomain.com, which I would like to display content from another site. For example, imagine that there is content at this url --> http://www.foo.com/my/file.bar, and I would like the ...
3
votes
2answers
2k views

disable mod_proxy for subdirectory (apache)

I have apache with one folder used for reverse proxy: <VirtualHost *:80> ... ProxyPass /site http://server.local:8989/site ProxyPassReverse /site http://server.local:8989/site </...
3
votes
2answers
2k views

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 ...
3
votes
2answers
109 views

How to securely partition blog folder on existing Apache website

I'm very aware of the benefits of running different websites under different user accounts to limit the damage if a single web application is compromised. I have been instructed to install a wordpress ...