Proxy setting strips CSS and Javascript

Proxy setting strips CSS and Javascript

am 02.04.2008 21:33:04 von souporpower

I have another issue with Apache. When I use it as a proxy, the page
is stripped off the CSS and javascript.

Here is the rule I use:

RewriteCond %{REQUEST_URI} survey08app
RewriteCond %{REQUEST_URI} !(userAdmin)
RewriteRule ^.*$ http://192.168.5.10/survey08app/loginForm.htm [L,P]

If I take out the P for Proxy, everything looks fine sans the URL. I
used P in the first place to not show the IP address 192.168.5.10.

There is something basic that I am missing. Your kind help is
appreciated.
Thanks

Re: Proxy setting strips CSS and Javascript

am 02.04.2008 22:41:35 von HansH

schreef in bericht
news:94bb9835-0321-4816-8769-c78e426c063a@x41g2000hsb.google groups.com...
>I have another issue with Apache. When I use it as a proxy, the page
> is stripped off the CSS and javascript.
>
> Here is the rule I use:
>
> RewriteCond %{REQUEST_URI} survey08app
> RewriteCond %{REQUEST_URI} !(userAdmin)
> RewriteRule ^.*$ http://192.168.5.10/survey08app/loginForm.htm [L,P]
>
> If I take out the P for Proxy, everything looks fine sans the URL. I
> used P in the first place to not show the IP address 192.168.5.10.
>
> There is something basic that I am missing. Your kind help is
> appreciated.
Rather than rewriterules try mod_proxy and freinds (assuming version 2.2)
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

HansH

Re: Proxy setting strips CSS and Javascript

am 03.04.2008 04:43:08 von sean dreilinger

souporpower@gmail.com wrote:
> I have another issue with Apache. When I use it as a proxy, the page
> is stripped off the CSS and javascript.
>
> Here is the rule I use:
>
> RewriteCond %{REQUEST_URI} survey08app
> RewriteCond %{REQUEST_URI} !(userAdmin)
> RewriteRule ^.*$ http://192.168.5.10/survey08app/loginForm.htm [L,P]
>
> If I take out the P for Proxy, everything looks fine sans the URL. I
> used P in the first place to not show the IP address 192.168.5.10.

if you're proxying a page hosted on 192.168.5.10 that instructs the browser to
load additional files (such as cascading stylesheets and javascript) that are
also hosted on 192.168.5.10, then you either need to proxy those additional
assets, or move them onto a publicly-accessible web server and rewrite the web
content to point at their new public location.

if http://192.168.5.10/survey08app/loginForm.htm contains instructions like
and