Cross site scripting and front-ending with apache

Discussion in 'Apache' started by Greg Zoller, Mar 24, 2010.

  1. #1
    Hello,

    I have apache sitting in front of my JBoss server. On the JBoss server is a dynamic web app and I want the apache server to serve static content for the app.

    I noticed that if I put javascript files on the apache side they will load into the browser fine when my web page is rendered but the javascript is not executed. I'm assuming this is some kind of cross-site scripting thing(?). Both are serving off localhost but apache is port 80 while JBoss is 8080.

    Is there a way to do this? I like serving js off apache because I can easily set headers to cache it and compress w/gzip.

    Thanks,
    Greg
     
    Greg Zoller, Mar 24, 2010 IP