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.

689 questions
0
votes
3 answers

Tomcat logging and mod_proxy

I have Tomcat running on port 8080, and when I send a request directly to Tomcat it works fine: curl -IL http://localhost:8080/myapp HTTP/1.1 302 Moved Temporarily Server: Apache-Coyote/1.1 Location: http://localhost:8080/myapp/ HTTP/1.1 302 Moved…
0
votes
0 answers

Apache2 ProxyPass / ProxyPassReverse results in 404 for only one out of many directives

Apache2, mod_proxy installed, using reverse proxy for more than a dozen sites, works flawlessly for those. Added one more directive but going to that URL results in a 404 error. For the purpose of this question the apache server is designated as…
Reality Extractor
  • 1,490
  • 2
  • 14
  • 23
0
votes
1 answer

URL rewrite for subdomain with Apache and mod_proxy

I have a Apache Webserver with mod_proxy and a Tomcat server with my Grails web app runnning. The Apache is redirecting with proxy the request to example.com:80 to my Tomcat running on example.com:8008. I need to redirect requests the following way:…
mr.simonski
  • 247
  • 4
  • 13
0
votes
1 answer

ProxyHTMLURLMap replaces url given two times

to explain the title, i have put this (this is the only htmlUrlMap) in my conf: ProxyHTMLURLMap / /rp/ticket/ and this in my html: what was expected:
Bor691
  • 233
  • 4
  • 14
0
votes
2 answers

Exclude the root from a ProxPass directive, but keep everything below the root included

I am running Apache in front of a Tomcat instance. Apache proxies every request that comes through and passes it on to Tomcat. The current configuration is such that Apache puts a ProxyPass on the root (/). There are however, new requirements, which…
user802232
  • 103
  • 2
0
votes
1 answer

apache mod_rewrite not working with mod proxy

I have a Rails 2.3.18 application running on http://0.0.0.0:3004/, it is running with Passenger module, and is deploying on Apache server with proxy module using the following configuration: AllowOverride…
trejo08
  • 131
  • 1
  • 8
0
votes
1 answer

apache mod_proxy or mod_rewrite for hide a root of a webserver behind a path

I have 2 apache 2.2.21 one external and one internal, I need to map the internal apache behind a path in external apache, but I have some problems with absolute url. I tried these configurations: RewriteEngine on RewriteRule ^/externalpath/(.*)$…
Giovanni
  • 43
  • 1
  • 5
0
votes
1 answer

Apache mod_proxy with SSL not redirecting

I have a custom server running behind an apache reverse proxy. Since the custom server can only handle HTTP traffic, i am trying to use apache for wrapping proper SSL around it, and for some kind of HTTP authentication. So i enabled mod_proxy and…
0
votes
1 answer

ProxyPassMatch, regex to proxy dynamic content

I have a shared hosting server with some 2000 websites on it. I have a lightweight apache/event frontend that takes care of static content and locally proxies requests for dynamic content to a heavyweight apache/prefork/mod_php backend. This is the…
wlf
  • 371
  • 2
  • 13
0
votes
2 answers

How do I configure my httpd rewrite/proxy to direct app1.example.com:443 to localhost:8080 and app2.example.com:443 to localhost:8081?

I have two Tomcat instances, one running on port 8080 and the other running on 8081. The both have deployed a web app called app.war but they are separated not only by different ports, but different data stores. However each runs on the same…
dacracot
  • 469
  • 2
  • 13
  • 28
0
votes
1 answer

Can I set a content type if the origin doesn't send one in mod_proxy?

I have a misbehaving origin that when it has an error page it is not setting a content-type header. This is then a problem as we're sitting behind Edgecast and they default to application/octet-stream which causes browsers to try and download the…
Glenn Slaven
  • 2,400
  • 2
  • 30
  • 42
0
votes
2 answers

Glassfish3 Apache mod_proxy_ajp and missing headers

I got Apache 2.2.22 with mod_proxy and mod_proxy_ajp. Here is my configuration of mod_proxy: ProxyRequests Off ProxyPreserveHost On ProxyErrorOverride On ProxyPass / ajp://localhost:8009/ ProxyPassReverse /…
m-szalik
  • 123
  • 3
0
votes
1 answer

Are there security concerns when using Apache's mod_proxy as a gateway?

In order to cope with same-origins policy for AJAX calls I want to allow for mod_rewrite and mod_proxy to handle these calls in a similar way as described in another answer: rewriteEngine on rewriteRule proxy/(.+)$ http://api.example.com/$1…
MRA
  • 307
  • 1
  • 2
  • 8
0
votes
1 answer

Apache reverse proxy logic based on arbitrary header

I have apache running on a natting fw, that authenticates, reverse proxies, and provides an ssl wrapper for 2 webapps on the back end. This works with virtual hosting and proxies back based on the top level directory of the request, e.g.…
MattPark
  • 303
  • 5
  • 20
0
votes
2 answers

Apache Proxy to show another Website

I need to proxy the URL http://de.domain.com/article1/foobar/ to http://de.foobar.domain.com/article1/. How can I do this within getting and setting the subdomain language part? Examples: http://de.domain.com/article1/foobar/ =>…
Mischa
  • 145
  • 1
  • 9