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
21
votes
1 answer

Apache port forward

I have apache couchDB active on http://localhost:5984/ which i need to access at http://localhost:80/couch/. I need to setup a reverse proxi for this. Need help with the configuration settings. PS: Whats the best resource to learn about apache?
Jaseem
  • 2,236
  • 6
  • 28
  • 35
21
votes
2 answers

lighttpd as reverse-proxy

DeviceA serves as a reverse-proxy and is supposed to forward requests as follows: 192.168.1.10/DeviceB ==> 192.168.1.20/index.html 192.168.1.10/DeviceC ==> 192.168.1.30/index.html Both index files are located under /var/www and are static "Hello…
impf
  • 221
  • 1
  • 2
  • 4
18
votes
1 answer

Do I need to use ProxyPassReverse if I'm using mod rewrite?

I am using mod rewrite to mask the context root of my application. For example, RewriteRule ^/directory/(.*) balancer://appcluster/directory/$1 [P] The appcluster looks like this: BalancerMember…
Scoota P
  • 2,622
  • 7
  • 29
  • 45
18
votes
2 answers

Remove basic authentication header with apache mod proxy

I have a HTTP Basic secured website. I hide a Tomcat application server with mod_proxy. Can I remove the HTTP Basic header? The Tomcat application reads the header and returns 401 not authorized. Basic auth isn't needed because the application uses…
Jan
  • 2,803
  • 6
  • 36
  • 57
18
votes
2 answers

Apache Web Server : ProxyPass and ProxyPassReverse

I have scanned through the internet and also stackoverflow and I'm still not sure of the purpose of proxypass and proxypassreverse. Why do we need proxypass (instead of using mod_jk) for apache server to connect to tomcat?
yapkm01
  • 3,590
  • 7
  • 37
  • 62
18
votes
3 answers

Best practices for configuring Apache / Tomcat

We are currently using Apache 2.2.3 and Tomcat 5 (Embedded in JBoss 4.2.2) using mod_proxy_jk as the connector. Can someone shed some light on the the correct way to calculate / configure the values below (as well as anything else that may be…
Jeremy
  • 2,870
  • 3
  • 23
  • 31
17
votes
1 answer

Apache: 502 proxy error in Express.js while integrating with Apache

I am hosting apache and node.js server together with apache server proxying to node server.My framework is express.js and I am using amCharts.I have timeout for proxying set to 600.When I open my website I get only the static content and not the…
Gyanesh Gouraw
  • 1,991
  • 4
  • 23
  • 31
16
votes
5 answers

Sending redirect in Tomcat web application behind a Apache 2 proxy (mod_proxy)

I have a web application on tomcat http://localhost:8080/WebApp/ The I have configrued Apache 2 (mod_proy) so that the web application is directly accessible by localhost with out port and name: e.g http://localhost
Mahe
  • 759
  • 1
  • 6
  • 21
15
votes
3 answers

Is there a way to remove apaches Reverse Proxy Request Headers?

When acting as a reverse proxy, apache adds x-forwarded headers as described here. http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#x-headers In my configuration I have configured server A as a forward proxy. There is a rule like…
The Surrican
  • 29,118
  • 24
  • 122
  • 168
15
votes
1 answer

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
  • 10,014
  • 9
  • 53
  • 75
15
votes
4 answers

How to use a different path name in ProxyPass than the Tomcat context name

I am using Tomcat 5.5.9 and Apache 2.x We are trying to use a path name in ProxyPass that is different than the Tomcat context name. ProxyPass /path http://localhost:8080/contextname However, this does not work. When these two are the same then…
Diptendu Dutta
  • 331
  • 1
  • 3
  • 12
14
votes
5 answers

Tomcat stops responding to Apache

I'm trying to resolve an issue about connecting Apache and Tomcat with mod_proxy_ajp. In my case, the Tomcat stops to response the Apache, and the apache log prints logs error message like this: [Mon May 06 15:22:47 2013] [error] ajp_read_header:…
sezina
  • 482
  • 2
  • 5
  • 18
14
votes
1 answer

ProxyPreserveHost seems to do little for me

I see many on the web referring to the use of ProxyPreserveHost On to make sure that a proxied backend receives the original caller's host name. I am using this to tighten my web application's security (Java, Tomcat) whereas it would also be nice if…
Sander Verhagen
  • 8,540
  • 4
  • 41
  • 63
14
votes
2 answers

Apache mod_proxy url encoding

I have a REST service that accepts parameters in a form /{parameter} Also there is Apache2 that forwards requests to the websevice AllowEncodedSlashes NoDecode LogLevel debug ProxyPass /webservice…
relgames
  • 1,356
  • 1
  • 16
  • 34
14
votes
1 answer

How to enable/configure SOCKS proxy support in apache mod_proxy ( Apache2 )

I'm trying to find a documentation about how to setup apache2 mod_proxy with SOCKS proxy I've found this page http://menet.math.ecnu.edu.cn/manual/mod/mod_proxy.html#socks But it is about apache version 1, and I'm not sure that the recipe there…
szydan
  • 2,318
  • 1
  • 15
  • 16
1
2
3
56 57