proxypass

Using ProxyPass for pages but not images

As a result of horrible, horrible errors, we've changed how we connect Apache to Tomcat. We were using mod_jk: JkMount /path ajp13 Now we're using mod_proxy_ajp: ProxyPass /path ajp://localhost:8009/path ProxyPassReverse /path ajp://localhost:8009/path However, there's a feature that JkMount offered but ProxyPass doesn't: the abili...

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 many others, I have the issue of having an application that I can access from outside our internal network, but that application itself acc...

apache ProxyPass: how to preserve original IP address

We are using ProxyPass to redirect all "/r" requests to jboss on port 18080 as follows: ProxyPreserveHost on ProxyPass /r http://localhost:18080/redirectService/ ProxyPassReverse /r http://localhost:18080/redirectService/ But, that causes the IP address logged in jboss's access log as "127.0.0.1". Does somebody know how can we preserv...

ProxyPass, ProxyReverse vs AJP

I currently have a Tomcat + Apache HTTP server setting to serve my Java servlet: ProxyPass /myservice http://localhost:8080/myservice ProxyPassRerverse /myservice http://localhost:8080/myservice This is all fine except that myservice needs to know the client IP address, which always turns out to be 127.0.0.1 due to the proxy. Is there...

Apache 2.2 reverse proxy not working

Hi, I am trying to set up my apache (version 2.2.3) to work as reverse proxy. I configured apache on public server as it is described at http://www.askapache.com/htaccess/reverse-proxy-apache.html LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule headers_module module...

Configure nginx for jboss/tomcat

Used to be in order to pass traffic to jboss/tomcat on port 80 using apache, we had to install and configure mod_jk. Is there an equivalent for nginx? Basically want all port 80 traffic to be passed to jboss. ...

Grails URL's with Tomcat/Apache ProxyPass

Grails tends to write out the URL for everything that uses its tags as /appName/whatever. For instance, if I use the tag: <g:javascript library="jquery"/> the resulting tag is <script src="/appName/jquery/jquery.js"></script> This causes an issue with using ProxyPass with Apache/Tomcat. All of my CSS, JS, Images and links have th...

Apache - Tomcat ProxyPass VirtualHost - Context Path

Hi, I have a problem configuring apache tomcat ProxyPass directive for two applications that have two different Contaxt Pathes in tomcat. The tomcat is running behind an apache and I use the apache to proxy path the requests to tomcat. In apache I want to access both application via a hostname instead of a context path. Scenario: tomc...

MediaWiki installed on virtual server accessed through Apache ProxyPass

Note: where you will see "xttp" actualy is "http" but stackoverflow rules do not allow me to use more than 1 hyperlink in one post because I do not have enough "credit" to do that :) INTRODUCTION Hi, I have installed a MediaWiki 1.15.3 software on a private LAN on a Linux box (CentOS 5), with: Apache 2.2.3, PHP 5.1.6, MySQL 5.0....

jetty via apache mod_proxy

Using an Apache virtualhost and mod_proxy I want to access a java application (myapp) available in a jetty instance on port 8080. With ProxyPass / localhost:8080/ on my apache virtualhost configuration I can access the application running in jetty with www.mydomain.com/myapp but I want the application to be accessed from www.mydomain.co...

Apache 2.2 ProxyPass with Weblogic - Can't use root

Hi all, I'm trying to configure an Apache 2.2 proxy server to point to multiple Weblogic instances. I'm doing fairly well with everything but a minor point. I can get this to work: ProxyPass /QA http://IP:PORT/ by going to http://IP:PORT/QA But I can't get this to work: ProxyPass / http://IP:PORT/ by going to http://IP:PORT/ I d...