aspose file tools*
The moose likes Tomcat and the fly likes can't find css, js and images when proxying Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "can Watch "can New topic
Author

can't find css, js and images when proxying

Andrew Cu
Greenhorn

Joined: Feb 20, 2008
Posts: 2
I'm using apache 2.0.59. I have the following in my httpd.conf. It did not display the page with css correctly along with missing images and js files. Can you tell me how to fix it please? How do we specify it so it will reference the images on the "tom" machine and not locally? I'm new to apache so if you can have sample code, I really appreciate it.

ProxyPass /rbs http://tom:14055/rbs
ProxyPassReverse /rbs http://tom:14055/rbs

access_log

10.68.26.77 - - [25/Feb/2008:14:56:32 -0800] "GET /rbs HTTP/1.1" 200 7972
10.68.26.77 - - [25/Feb/2008:14:56:33 -0800] "GET /rbs/css/aire.css HTTP/1.1" 404 1214
10.68.26.77 - - [25/Feb/2008:14:56:33 -0800] "GET /rbs/js/java.js HTTP/1.1" 404 1214
10.68.26.77 - - [25/Feb/2008:14:56:33 -0800] "GET /rbs/js/bss.js HTTP/1.1" 404 1214
10.68.26.77 - - [25/Feb/2008:14:56:34 -0800] "GET /rbs/js/findDOM.js HTTP/1.1" 404 1214
10.68.26.77 - - [25/Feb/2008:14:56:34 -0800] "GET /rbs/images/onepixel.gif HTTP/1.1" 404 1214
10.68.26.77 - - [25/Feb/2008:14:56:34 -0800] "GET /rbs/images/login_form_top.gif HTTP/1.1" 404 1214
10.68.26.77 - - [25/Feb/2008:14:56:34 -0800] "GET /rbs/images/login_form_bottom.gif HTTP/1.1" 404 1214
10.68.26.77 - - [25/Feb/2008:14:56:34 -0800] "GET /rbs/images/login_logo_top.gif HTTP/1.1" 404 1214
10.68.26.77 - - [25/Feb/2008:14:56:35 -0800] "GET /rbs/images/small_logo.jpg HTTP/1.1" 404 1214
10.68.26.77 - - [25/Feb/2008:14:56:35 -0800] "GET /rbs/images/login_logo_bottom.gif HTTP/1.1" 404 1214
[ February 25, 2008: Message edited by: King Dom ]
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14144
    
  18

King Dom, please check your private messages. You can see them by clicking My Private Messages.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can't find css, js and images when proxying