Configuring Reverse proxy with Apache Http Server2.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have installed Apache HttpServer (v2.2) on WindowsXP machine and trying to configure Reverse-Proxy within Apache HTTPServer, which will act as a proxy to an J2EE ApplicationServer(Weblogic) running on a SEPARATE Machine.

The application is installed on J2EE Server (including images, html pages, css, _javascript_ etc), there is no content on Apache http server.

I could open the home page by typing http://localhost:8080/ , which opens up the home page from the j2ee application server, however the issues is that if any link or button is clicked on the homepage then it redirects to the j2ee server and browser displays the URL/IP of J2ee server which it should not as this is proxied.

It appears that the ProxyHTMLURLMap directive is not working properly, it is not able to rewrite the URL of j2ee server with the url of proxy server, these URL's which points to the J2EE server are contained in the _javascript_ (.js) & .css files and are not rewritten by ProxyHTMLURLMap directive

Following are the contents of httpd.conf

LoadModule headers_module modules/mod_headers.so
LoadFile "C:\softwares\apachehttp\bin\iconv.dll"
LoadFile "C:\softwares\apachehttp\bin\zlib1.dll"
LoadFile "C:\softwares\apachehttp\bin\libxml2.dll"
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_html_module modules/mod_proxy_html.so
LoadModule xml2enc_module modules/mod_xml2enc.so
LoadModule rewrite_module modules/mod_rewrite.so
Include "conf/extra/proxy_html.conf"
ProxyRequests off


ProxyPass /myapp/ http://myserver.com:7001/myapp/
ProxyHTMLURLMap http://myserver.com:7001/myapp /myapp
<Location /myapp/>
 ProxyPassReverse http://myserver.com:7001/myapp/
 SetOutputFilter proxy-html
 ProxyHTMLURLMap /            /myapp/
 ProxyHTMLURLMap /myapp      /myapp
</Location>


Please help

Thanks & Regards
Tapan


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux