Questions tagged [mod-proxy]

mod-proxy is the proxying module for the Apache HTTP server.

mod-proxy is the proxying module for the Apache HTTP server.

Questions with this tag should relate directly to the use of this module. Questions about mod-proxy-balancer should use that tag rather than this one.

848 questions
13
votes
3 answers

Apache mod-proxy ProxyErrorOverride for specific URL patterns

I am using Apache 2.2 with mod-proxy and I have configured it with several ProxyPass statements to proxy from remote URL to local URL. I need to have custom error documents returned from Apache for these proxied URLs so I set "ProxyErrorOverride…
benw
  • 887
  • 2
  • 8
  • 20
12
votes
1 answer

How to rewrite / proxy an Apache URI to an application listening on a specific port / server?

They say that Apache's mod_rewrite is the swiss-army knife of URL manipulation, but can it do this? Lets say I want to add a new application to my Apache webserver, where the only configurable option of the app is a port number. I want to use & give…
Alex Leach
  • 1,199
  • 2
  • 12
  • 26
12
votes
2 answers

Tomcat cookies not working via my ProxyPass VirtualHost

I'm having some issues with getting cookies to work when using a ProxyPass to redirect traffic on port 80 to a web-application hosted via Tomcat. My motivation for enabling cookies is to get rid of the "jsessionid=" parameter that is appended to the…
John
  • 2,571
  • 6
  • 32
  • 40
12
votes
1 answer

Apache 2.4 + php-fpm - AH01071: Got error 'Primary script unknown\n' mod_proxy_balancer

I'm configuring an Apache 2.4.9 with php-fpm 5.5.9 in my Ubuntu 14.04. What I want is to make a balancer for the php-fpm requests but It throws the following error: AH01071: Got error 'Primary script unknown\n' When I try to access my php file. It…
user3742266
  • 153
  • 1
  • 1
  • 6
12
votes
1 answer

Apache proxy caching "service temporarily unavailable" response when target is down

I have apache sitting in front of my node server. Node is running on certain port, I am using apache to proxy to that port and also have apache configured for https. When I start apache and then start my node server everything runs great. If I…
lostintranslation
  • 23,756
  • 50
  • 159
  • 262
12
votes
1 answer

Reverse proxy with websocket mod_proxy_wstunnel

I have a 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 : ServerAdmin webmaster@localhost ServerName…
WhatsUp
  • 453
  • 1
  • 5
  • 21
11
votes
2 answers

AJP 1.3 Connector listens on port 8009 globally, why and how to turn it off?

I set up a Tomcat 6 with an Apache 2 and mod_proxy. Now I have this default value in my server.xml: netstat looks like this: Active Internet connections (servers and…
flhe
  • 341
  • 4
  • 8
  • 15
11
votes
2 answers

Apache httpd 2.4 reverse proxy does not compress

With Apache httpd 2.2, it was possible to setup a reverse proxy and use mod_deflate for compressing proxied content, honoring Accept-Encoding: gzip headers. This configuration was sufficient for getting it to work: LoadModule deflate_module…
Gunther
  • 5,146
  • 1
  • 24
  • 35
11
votes
2 answers

apache proxy module gives 403 forbidden error

I am trying to use the apache's proxy module for working with xmpp on ubuntu desktop. For this i did the following things - 1) enabled mod_proxy by creating a symlink of proxy.conf, proxy.load and proxy_http.load from /etc/apache2/mods-available/…
naiquevin
  • 7,588
  • 12
  • 53
  • 62
10
votes
2 answers

Risk of using Apache mod_proxy

I am now exploring to use Apache's mod_proxy's directive, eg ProxyPass, as part of solution for cross-domain scripting restriction (for html/ajax/flash code). However, I am afraid by enabling mod_proxy, I would risk having the server as open…
Nordin
  • 3,087
  • 5
  • 28
  • 35
10
votes
3 answers

Retaining protocol and port number from reverse proxy request

Case: User requests https://api.abc.com This is reverse proxied (Apache 2.2) to an internal server server at http://internal.abc.com:123 As per Retain original request URL on mod_proxy redirect , by adding: ProxyPreserveHost On to httpd.conf,…
ChaimKut
  • 2,759
  • 3
  • 38
  • 64
10
votes
2 answers

Using go-websocket behind Apache mod_proxy_wstunnel

Note: Updated config and added trailing slash to websocket path. Still same problem Is it possible to use go-websocket behind a Apache reverse proxy with mod_proxy_wstunnel? I tried and failed to get things working. I tried to use the Chat example…
Koala Yeung
  • 7,475
  • 3
  • 30
  • 50
10
votes
4 answers

Apache multipart POST "pass request body failed"

We are having problems with our web server (which is configured ssl -> apache -> jetty) randomly rejecting multipart upload POST requests with a 400 Bad Request error code. The apache error log (on info level) shows the following two errors: [info]…
m1h4
  • 1,139
  • 2
  • 13
  • 22
10
votes
2 answers

httpd mod_proxy_balancer failover failonstatus - transparent switching

I am using mod_proxy_balancer to manage failover of backend servers. Backend servers may return an error code instead of timing out when some other backend service fails such as NFS and we want such servers also to be marked as failed nodes. Hence…
Praveen
  • 375
  • 1
  • 5
  • 18
10
votes
2 answers

How to set up a proxy location for all paths except some with apache2?

I've got several webapps running on my webserver: SVN Repository Browser, accessible via https://beta.mydomain.tld/svn/repos Trac instance, accesible via https://beta.mydomain.tld/trac My own java web application, accessible via…
peterp
  • 3,101
  • 3
  • 22
  • 37
1 2
3
56 57