Skip to main content

Questions tagged [mod-proxy]

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.

Filter by
Sorted by
Tagged with
38 votes
2 answers
82k 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 ...
JosephGarrone's user avatar
36 votes
3 answers
59k 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....
Mughil's user avatar
  • 1,969
29 votes
9 answers
110k 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 ...
wyqydsyq's user avatar
  • 405
25 votes
6 answers
114k 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 ...
Kariem's user avatar
  • 561
22 votes
3 answers
67k 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 ...
JOTN's user avatar
  • 1,767
20 votes
1 answer
18k 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 ...
theTuxRacer's user avatar
19 votes
2 answers
39k views

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 ...
SnowmanOnFire's user avatar
19 votes
3 answers
71k 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 ...
ksclarke's user avatar
  • 413
17 votes
2 answers
102k 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 ...
Jeremy Gooch's user avatar
16 votes
1 answer
15k views

serve all requests via proxy *except* a specific one

I have the following in my httpd.conf <VirtualHost *:80> ServerName foo.org ServerAlias www.foo.org <Proxy *> Options FollowSymLinks MultiViews Order allow,...
punkish's user avatar
  • 323
13 votes
3 answers
79k 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 ...
user avatar
13 votes
2 answers
12k 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 ...
Scott Klarenbach's user avatar
13 votes
1 answer
13k 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: ...
Dark Star1's user avatar
  • 1,445
13 votes
3 answers
47k 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 / ...
bux's user avatar
  • 636
11 votes
2 answers
32k 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 /...
SevenProxies's user avatar
11 votes
1 answer
21k 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 ...
hendry.fu's user avatar
  • 225
11 votes
1 answer
8k 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/ ...
ripper234's user avatar
  • 6,092
10 votes
3 answers
71k views

"No protocol handler valid for the URL" with httpd mod_proxy_balancer

I'm trying to set up failover for a reverse-proxied server with a localhost static copy of resources that would usually be served by a content management system. I've used wget to grab a static copy ...
Christopher Schultz's user avatar
10 votes
1 answer
58k 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 ...
maxtorzito's user avatar
10 votes
3 answers
23k 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 ...
580farm's user avatar
  • 251
10 votes
1 answer
41k 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 ...
james_t's user avatar
  • 203
10 votes
3 answers
12k 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 ...
Konrad Neuwirth's user avatar
10 votes
2 answers
28k 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 /...
codecraig's user avatar
  • 387
9 votes
1 answer
19k 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 : !...
Andrei's user avatar
  • 463
9 votes
3 answers
17k views

Apache mod_proxy: forward secure websocket to non-secure

The websocket library I rely on (PHP-Websockets) does not yet support secure sockets (wss). My website is served over https though, so I cannot use insecure ws connections. I'm trying to use Apache's ...
BeetleJuice's user avatar
9 votes
1 answer
14k views

Gunicorn behind apache link to localhost

I have a gunicorn serving a flask application behind Apache using mod_proxy. Gunicorn is on http://localhost:8080/. Let's say my server is on http://example.com/ Sometimes when I post an invalid ...
Alexis Benoist's user avatar
9 votes
3 answers
6k 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 ...
Ryan's user avatar
  • 440
8 votes
5 answers
9k 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 ...
Tom's user avatar
  • 2,672
8 votes
2 answers
19k 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 (a ...
George's user avatar
  • 171
8 votes
1 answer
11k 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 ...
Jason Huntley's user avatar
7 votes
2 answers
20k 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 ...
Benjamin Wohlwend's user avatar
7 votes
4 answers
31k 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....
Laurent Nominé's user avatar
7 votes
2 answers
10k 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 ...
bramp's user avatar
  • 230
7 votes
3 answers
27k 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 ...
EpicOfChaos's user avatar
7 votes
2 answers
36k views

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 ...
gotjee's user avatar
  • 89
7 votes
2 answers
13k 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 ...
futureelite7's user avatar
7 votes
2 answers
11k 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 ...
David Newcomb's user avatar
7 votes
1 answer
12k views

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, ...
jack-y's user avatar
  • 171
7 votes
1 answer
3k 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 ...
Steve Schnepp's user avatar
6 votes
3 answers
20k 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://...
Joey BagODonuts's user avatar
6 votes
4 answers
3k 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 ...
brad's user avatar
  • 512
6 votes
5 answers
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 ...
Chris_K's user avatar
  • 3,424
6 votes
1 answer
17k views

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 ...
Glenn Slaven's user avatar
  • 2,430
6 votes
2 answers
6k views

Apache ReverseProxyPass redrects to http rather than https

I have a reverse proxy setup using apache mod_proxy: <VirtualHost *:443> ServerName reverse.server.com ProxyPass / http://10.1.9.11:3000/ ProxyPassReverse / http://10.1.9.11:3000/ ...
Paul's user avatar
  • 1,309
6 votes
1 answer
60k views

how to fix apache2 "proxy_http:error" AH01102: error reading status line from remote server localhost:4382

how to fix apache2 "proxy_http:error" AH01102: error reading status line from remote server localhost:4382. I have an apache2 webserver which is being used to serve few nodejs applications in the ...
devops-admin-jacky's user avatar
6 votes
2 answers
13k views

Apache: honouring the DNS ttl in proxy-pass

We’re trying to set a bunch of Apaches 2.4.18 to proxy pass the requests it receives to our partner's upstream server. Our partner uses Amazon’s Elastic Load Balancing and thus the only we know about ...
Gustau Pérez's user avatar
6 votes
1 answer
9k views

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 ...
kaqqao's user avatar
  • 163
6 votes
1 answer
7k 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 ...
Daniel Cerecedo's user avatar
6 votes
1 answer
1k views

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 ...
greyhathero's user avatar
6 votes
2 answers
4k views

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 ...
Arcturus B's user avatar

1
2 3 4 5
14