View Single Post
Old 11-07-2008, 06:19 PM   #18
Cold
Junior Member
Cold began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2008
Device: prs505
Quote:
Originally Posted by CrazyIvan View Post
I believe he's just using Apache's reverse proxy features
Yep, exactly - very useful indeed.

Quote:
Originally Posted by kovidgoyal View Post
Would it help if gui.js used relative paths instead of absolute ones?
It would :)

I'm serving from http://domain.com/some/path/, /static is therefore http://domain.com/some/path/static/ (Which the reverse proxy rewrite takes care of), /library is at http://domain.com/some/path/library and /get is http://domain.com/some/path/get

Those last two, being called by gui.js, can't be rewritten by mod_proxy_html as it doesn't parse .js files

Quote:
Originally Posted by kovidgoyal View Post
EDIT: I've changed gui.js to use the hostname+absolute path
It's honouring the path that's the issue, so an absolute path will be no good without additional JS jiggery-pokery.

Thanks for looking at this, it's appreciated.

Last edited by Cold; 11-07-2008 at 06:25 PM.
Cold is offline   Reply With Quote