mod_proxy: CSS & JavaScript not loaded

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

 



Working on a MacBook Pro with Mac OS X 10.5.6, I have an app that runs fine on Tomcat standalone.  But when I turn Apache on and proxy it to Tomcat the RichFaces CSS and _javascript_ are not loaded.  Initially, my specific CSS is loaded but if I click on a link then "all" CSS and JS are lost on subsequent pages (empty in FireBug).  The application uses Facelets/MyFaces/Spring/
Hibernate/RichFaces.

I thought maybe I needed mod_proxy_html.so, so I compiled and installed it - like this:
johnruffin:mod_proxy_html johnruffin$ sudo apxs -c -I/usr/include/libxml2 -Wc,-arch -Wc,x86_64 -Wl,-arch -Wl,x86_64  -i mod_proxy_html.c

Then edited httpd.conf:

LoadFile /usr/lib/libxml2.dylib
LoadModule proxy_html_module libexec/apache2/mod_proxy_html.so


No errors on the compile.  No errors in system.log when enabling "Web Sharing".

Here is the setup proxy setup from httpd.conf:

<Proxy *>
    Order Deny,Allow
    Deny from all
    Allow from foo.com
</Proxy>

ProxyRequests Off
ProxyPreserveHost Off
ProxyPass        /    http://localhost:8080/bar-webapp/
ProxyPassReverse /    http://localhost:8080/bar-webapp/
SetOutputFilter proxy-html
ProxyHTMLExtended On
ProxyHTMLURLMap http://localhost:8080/bar-webapp /bar-webapp

Any ideas?  I've been battling this for a few days now.

[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