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

11
votes
2answers
26k 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 ...
3
votes
1answer
2k 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 ...
2
votes
1answer
3k views

How to use Apache to proxy from subfolder to other server

Given the following url: domain.com/wiki/ I'd like apache to redirect all requests below that (so domain.com/wiki/*) to otherdomain.com:8080/. But the trick is I want the user to always see ...
0
votes
1answer
7k views

Custom Apache ErrorDocument with proxy balancer & RewriteEngine

I'm running into various problems trying to add custom ErrorDocuments to my server. I'm using proxy balancer to share the load between two instances of Zope and some simple rewrite rules to map my ...
2
votes
2answers
7k views

How to properly use VirtualHost and mod_proxy together for different incoming domain names and internal ports?

I am trying to setup httpd.conf properly but regardless of the sub-domain/domain combo below, they all resolve to the same internal URL. <Proxy *> Order Allow,Deny Allow from all ...
4
votes
0answers
421 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 ...
2
votes
4answers
4k views

Absolute urls not working with Apache2 AJP proxy Tomcat

I don't seem to get how to configure ReverseProxy correctly. The URLs returned are all for the root directory "/", not "/tomcat" and only the main "default" tomcat page is displayed. I use Apache2 as ...
4
votes
2answers
18k 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 ...
0
votes
2answers
4k views

mod_proxy on Apache 2.2.3 proxying to Tomcat 5.5 returns Error 502 Bad Gateway

I'm getting a 502 bad gateway error when using mod_proxy on Apache 2.2.3 proxying to Tomcat 5.5. It works correctly when used directly via Tomcat (not via mod_proxy), so I assume the problem is on ...
2
votes
3answers
5k 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 ...
7
votes
6answers
11k 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 ...
4
votes
1answer
7k 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 ...
3
votes
1answer
5k 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 ...
0
votes
1answer
3k views

nginx reverse proxy, ssl offloading, caching and pagespeed all in one.

We currently host everything on windows IIS 7 servers. We just moved to Azure, and like many clouds hosting windows is more expensive than hosting linux. Azure has its own limitations for virtual ...
0
votes
1answer
1k views

mod_proxy tomcat

I've asked this question in a few places and I've found no answer. It should be pretty simple and a pretty common problem. Unfortunately I know nothing about tomcat and mod_proxy so I'm unable to ...
6
votes
5answers
20k 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 ...
4
votes
2answers
18k 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 ...
3
votes
1answer
2k views

Apache 500 when proxying URLS with %20 via mod_proxy

We are receiving a 500 out of Apache while proxying calls to tomcat when there is an encoded space in the URL. We are migrating an application that ran fine on a J2EE container which had an older, ...
3
votes
2answers
6k 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 ...
2
votes
1answer
2k views

How can I get apache to serve static content in a reverse-proxied setup?

I have a setup where my Tomcat instances are fronted with Apache servers with mod-proxy. I need to serve static content on the reverse-proxy side in case authentication closes my app session (heavy ...
0
votes
1answer
891 views

How to use mod_proxy to let my index of Apache go to Tomcat ROOT and be able to browse my other Apache sites

I am trying to use my Tomcat application (deployed at ROOT) to be viewed from Apache port 80. To do this, I used mod_proxy, since mod_jk made me try harder. I used sth like this in httpd.conf: ...
2
votes
1answer
895 views

Apache as a proxy for Nexus, Jenkins and Foreman (Several VirtualHosts on same domain, IP and Port)

I'd like to configure Apache to be used as a proxy for Nexus, Jenkins and Foreman which are installed and running on the same server. Here is an example of the Virtual host config file for Foreman, ...
2
votes
2answers
3k views

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

Apache2 proxy Tomcat6 prevent 503 error while starting

While tomcat6 is starting up all my http requests are retained by the server and sends the response when the server is up. But when I use an apache2 as a proxy the apache2 responds inmediatly a 503 ...
2
votes
1answer
3k views

apache mod proxy to another domain with relative paths

We have an apache virtual host www.example.com now Im trying to get www.example.com/mypath to go to load the pages from www.example1.com using mod_poxy i have it with a base ProxyPass /mypath ...
1
vote
0answers
263 views

Lighttpd and Discourse (Docker): configuring mod_proxy

I have trouble configuring Lighttpd to serve the various services hosted on my server. Lighttpd acts as a front, and I have several DNS records, each for a different subdomain, redirecting to the same ...
1
vote
1answer
3k views

Apache Virtual Host SSL Behind Reverse Proxy

I have a web server (Apache reverse proxy) in front of my app server (Apache) and I'm trying to pass common name for SSL. My web server (Apache reverse proxy) is setup to preserve hostname ...
1
vote
1answer
4k views

Apache server : Reverse proxy and websockets via mod_proxy_wstunnel

I have a little problem with the web sockets and my reverse proxy apache, i have upgraded in latest release 2.4.5 and loaded the module mod_proxy_wstunnel. The httpd.conf : <VirtualHost ...
1
vote
0answers
196 views

Apache: Setting up a reverse proxy configuration with SSL with url rewriting

There is a host: secure.foo.com that exposes a webservice using https I want to create a reverse proxy using Apache that maps a local http port on a server internal.bar.com to the https service ...
1
vote
1answer
1k views

Zimbra 7.2 reverse proxy to arbitrary internal website?

I have ZCS 7.2 opensource installed at webmail.domain.com and mailman on mailman.domain.com/mailman. I wanted to setup a proxy so that when someone goes to webmail.domain.com/mailman, the proxy ...
1
vote
0answers
401 views

lighttpd 1.5 reverse-proxy to trac

I'm running lighttpd 1.5 freshly compiled off svn. I have a trac daemon listening on port 8000 and I want to proxy all requests matching ^http://xx.xx.xx.xx/trac(*.) to that daemon. Here is what it ...
1
vote
2answers
300 views

mod_proxy security

I'm on Debian Lenny using apache2. in my proxy.conf I tried adding Allow from localhost as suggested in some other forums to get proxying to work. Didn't work. It only worked if I say ...
0
votes
2answers
399 views

Forcing Apache 2.4 to cache files with query string using mod_cache without expires

I need to get mod_cache_disk to cache a site containing query strings. The issue is that it's a vendor product on IIS that we're trying to cache through mod_proxy and it does not contain expires ...
-1
votes
1answer
2k views

HTTP proxy - expect 100 and authentication

I have an issue with Apache2 which I use as a proxy. My software sends HTTP PUT for protected resource with Expect: 100-continue Transfer-Encoding: chunked And instead of getting '401 ...