Forum Moderators: phranque

Message Too Old, No Replies

rewrite proxy returned javascript content

rewrite proxy returned javascript content

         

canzi

4:33 am on Nov 6, 2008 (gmt 0)

10+ Year Member



Hi All

hopefully an easy problem for someone, i have tried for ages to come up with a solution but to no avail

basically we have a windows server on our internal network 10.0.0.xx running an application that as far as i can tell uses javascript, so we added a ProxyPass and ProxyPassReverse to an external box but...

oliver.external = 202.123.x.x
ProxyPass /oliver [darkside.internal...]
ProxyPassReverse /oliver [darkside.internal...]

but the info returned in the page says darkside.internal so when a user click on it from outside the network it will fail

i have spoken to the people who wrote the application and they can not/will not fix the dynamically created url part so i need to try and rewrite it or move the server to an external ip (or port forward) ((id rather not))

any idea's

many thanks in advance

Steve

ajcoon

7:42 pm on Nov 24, 2008 (gmt 0)

10+ Year Member



Don't you want to use RewriteRule with [P] option?

jdMorgan

7:48 pm on Nov 30, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Application servers need only to be set up as reverse, not forward proxies. So the "ProxyPass" should not be necessary, and constitutes a security risk.

It sounds like the code is not being executed, but rather simply served up raw in response to requests. Chech that it is marked as executable, and that the handler needed to execute it is properly configured.

Jim