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
src=/survey08app/loginForm.js> -- the web browser is going to request those from
your public server, and you'll need to host them publicly or proxy those files
as well.
you might try something lazy and just proxy everything that falls under a
certain directory, along the lines of:
On Apr 2, 10:43=A0pm, sean dreilinger wrote:
> souporpo...@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=A0[L,P]
>
> > If I take out the P for Proxy, everything looks fine sans the URL. I
> > used P =A0in 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 browse=
r 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 additiona=
l
> assets, or move them onto a publicly-accessible web server and rewrite the=
web
> content to point at their new public location.
>
> ifhttp://192.168.5.10/survey08app/loginForm.htmcontains instructions like
> and
> src=3D/survey08app/loginForm.js> -- the web browser is going to request th=
ose from
> your public server, and you'll need to host them publicly or proxy those f=
iles
> as well.
>
> you might try something lazy and just proxy everything that falls under a
> certain directory, along the lines of:
>
> RewriteRule ^/survey08app/(.*)$http://192.168.5.10/survey08app/$1[L,P]
>
> so if your user's browser requests any of
>
> =A0 =A0 =A0 =A0 /survey08app/loginform.php
> =A0 =A0 =A0 =A0 /survey08app/loginform.css
> =A0 =A0 =A0 =A0 /survey08app/someotherfile.etc.etc
>
> those are proxied from
>
> =A0 =A0 =A0 =A0http://192.168.5.10/survey08app/loginform.php
> =A0 =A0 =A0 =A0http://192.168.5.10/survey08app/loginform.css
> =A0 =A0 =A0 =A0http://192.168.5.10/survey08app/someotherfile.etc.etc
>
> respectively.
>
> --sean
>
> --
> sean dreilinger -http://durak.org/sean/
Hi Sean
I changed the rule as you suggested.
The website in question has a login form. The user enters the email id
and if valid the next form is shown. For some reason, upon submission
of the form the IP address is shown. Whereas if I try the second page
with proxy in the URL, it works.
Let me try to illustrate this as follows:
http://proxy/survey08app/loginForm.htm ---> shows up correctly
Fill the form and expect http://proxy/survey08app/page2.htm
but instead I get http://192.168.5.10/survey08app/page2.htm
However, if I try http://proxy/survey08/page2.htm it shows up
correctly and I am able to complete the survey with proxy settings.
There is nothing special about page2 to prevent the proxy settings.
I'd appreciate your kind help.
Thanks
Re: Proxy setting strips CSS and Javascript
am 03.04.2008 15:44:04 von HansH
schreef in bericht
news:14725e19-7051-4743-8c73-0239fe05b1c7@c65g2000hsa.google groups.com...
On Apr 2, 10:43 pm, sean dreilinger wrote:
> The website in question has a login form. The user enters the email id
> and if valid the next form is shown. For some reason, upon submission
> of the form the IP address is shown. Whereas if I try the second page
> with proxy in the URL, it works.
>
> Let me try to illustrate this as follows:
>
> http://proxy/survey08app/loginForm.htm ---> shows up correctly
>
> Fill the form and expect http://proxy/survey08app/page2.htm
> but instead I get http://192.168.5.10/survey08app/page2.htm
>
> However, if I try http://proxy/survey08/page2.htm it shows up
> correctly and I am able to complete the survey with proxy settings.
>
> There is nothing special about page2 to prevent the proxy settings.
Check for missing or ampty action atribute at th
Re: Proxy setting strips CSS and Javascript
am 03.04.2008 17:33:49 von souporpower
On Apr 3, 9:44=A0am, "HansH" wrote:
> schreef in berichtnews:14725e19-7051-4743-8c73-023=
9fe05b1c7@c65g2000hsa.googlegroups.com...
> On Apr 2, 10:43 pm, sean dreilinger wrote:
>
>
>
> > The website in question has a login form. The user enters the email id
> > and if valid the next form is shown. For some reason, upon =A0submission=
> > of the form the IP address is shown. Whereas if I try the second page
> > with proxy in the URL, it works.
>
> > Let me try to illustrate this as follows:
>
> >http://proxy/survey08app/loginForm.htm---> shows up correctly
>
> > Fill the form and expecthttp://proxy/survey08app/page2.htm
> > but instead I gethttp://192.168.5.10/survey08app/page2.htm
>
> > However, if I tryhttp://proxy/survey08/page2.htmit shows up
> > correctly and I am able to complete the survey with proxy settings.
>
> > There is nothing special about page2 to prevent the proxy settings.
>
> Check for missing or ampty action atribute at th
Re: Proxy setting strips CSS and Javascript
am 03.04.2008 21:50:41 von souporpower
On Apr 3, 11:33=A0am, "souporpo...@gmail.com"
wrote:
> On Apr 3, 9:44=A0am, "HansH" wrote:
>
>
>
>
>
> > schreef in berichtnews:14725e19-7051-4743-8c73-0=
239fe05b1c7@c65g2000hsa.googlegroups.com...
> > On Apr 2, 10:43 pm, sean dreilinger wrote:
>
> > > The website in question has a login form. The user enters the email id=
> > > and if valid the next form is shown. For some reason, upon =A0submissi=
on
> > > of the form the IP address is shown. Whereas if I try the second page
> > > with proxy in the URL, it works.
>
> > > Let me try to illustrate this as follows:
>
> > >http://proxy/survey08app/loginForm.htm---> shows up correctly
>
> > > Fill the form and expecthttp://proxy/survey08app/page2.htm
> > > but instead I gethttp://192.168.5.10/survey08app/page2.htm
>
> > > However, if I tryhttp://proxy/survey08/page2.htmitshows up
> > > correctly and I am able to complete the survey with proxy settings.
>
> > > There is nothing special about page2 to prevent the proxy settings.
>
> > Check for missing or ampty action atribute at th
Re: Proxy setting strips CSS and Javascript
am 04.04.2008 17:54:48 von souporpower
On Apr 3, 3:50=A0pm, "souporpo...@gmail.com"
wrote:
> On Apr 3, 11:33=A0am, "souporpo...@gmail.com"
> wrote:
>
>
>
>
>
> > On Apr 3, 9:44=A0am, "HansH" wrote:
>
> > > schreef in berichtnews:14725e19-7051-4743-8c73=
-0239fe05b1c7@c65g2000hsa.googlegroups.com...
> > > On Apr 2, 10:43 pm, sean dreilinger wrote:
>
> > > > The website in question has a login form. The user enters the email =
id
> > > > and if valid the next form is shown. For some reason, upon =A0submis=
sion
> > > > of the form the IP address is shown. Whereas if I try the second pag=
e
> > > > with proxy in the URL, it works.
>
> > > > Let me try to illustrate this as follows:
>
> > > >http://proxy/survey08app/loginForm.htm---> shows up correctly
>
> > > > Fill the form and expecthttp://proxy/survey08app/page2.htm
> > > > but instead I gethttp://192.168.5.10/survey08app/page2.htm
>
> > > > However, if I tryhttp://proxy/survey08/page2.htmitshowsup
> > > > correctly and I am able to complete the survey with proxy settings.
>
> > > > There is nothing special about page2 to prevent the proxy settings.
>
> > > Check for missing or ampty action atribute at th
Re: Proxy setting strips CSS and Javascript
am 07.04.2008 16:43:38 von souporpower
On Apr 4, 11:54=A0am, "souporpo...@gmail.com"
wrote:
> On Apr 3, 3:50=A0pm, "souporpo...@gmail.com"
> wrote:
>
>
>
>
>
> > On Apr 3, 11:33=A0am, "souporpo...@gmail.com"
> > wrote:
>
> > > On Apr 3, 9:44=A0am, "HansH" wrote:
>
> > > > schreef in berichtnews:14725e19-7051-4743-8c=
73-0239fe05b1c7@c65g2000hsa.googlegroups.com...
> > > > On Apr 2, 10:43 pm, sean dreilinger wrote:
>
> > > > > The website in question has a login form. The user enters the emai=
l id
> > > > > and if valid the next form is shown. For some reason, upon =A0subm=
ission
> > > > > of the form the IP address is shown. Whereas if I try the second p=
age
> > > > > with proxy in the URL, it works.
>
> > > > > Let me try to illustrate this as follows:
>
> > > > >http://proxy/survey08app/loginForm.htm---> shows up correctly
>
> > > > > Fill the form and expecthttp://proxy/survey08app/page2.htm
> > > > > but instead I gethttp://192.168.5.10/survey08app/page2.htm
>
> > > > > However, if I tryhttp://proxy/survey08/page2.htmitshowsup
> > > > > correctly and I am able to complete the survey with proxy settings=
..
>
> > > > > There is nothing special about page2 to prevent the proxy settings=
..
>
> > > > Check for missing or ampty action atribute at th
Re: Proxy setting strips CSS and Javascript
am 07.04.2008 16:53:53 von souporpower
On Apr 4, 11:54=A0am, "souporpo...@gmail.com"
wrote:
> On Apr 3, 3:50=A0pm, "souporpo...@gmail.com"
> wrote:
>
>
>
>
>
> > On Apr 3, 11:33=A0am, "souporpo...@gmail.com"
> > wrote:
>
> > > On Apr 3, 9:44=A0am, "HansH" wrote:
>
> > > > schreef in berichtnews:14725e19-7051-4743-8c=
73-0239fe05b1c7@c65g2000hsa.googlegroups.com...
> > > > On Apr 2, 10:43 pm, sean dreilinger wrote:
>
> > > > > The website in question has a login form. The user enters the emai=
l id
> > > > > and if valid the next form is shown. For some reason, upon =A0subm=
ission
> > > > > of the form the IP address is shown. Whereas if I try the second p=
age
> > > > > with proxy in the URL, it works.
>
> > > > > Let me try to illustrate this as follows:
>
> > > > >http://proxy/survey08app/loginForm.htm---> shows up correctly
>
> > > > > Fill the form and expecthttp://proxy/survey08app/page2.htm
> > > > > but instead I gethttp://192.168.5.10/survey08app/page2.htm
>
> > > > > However, if I tryhttp://proxy/survey08/page2.htmitshowsup
> > > > > correctly and I am able to complete the survey with proxy settings=
..
>
> > > > > There is nothing special about page2 to prevent the proxy settings=
..
>
> > > > Check for missing or ampty action atribute at th
Re: Proxy setting strips CSS and Javascript
am 10.04.2008 22:36:08 von souporpower
On Apr 7, 10:53=A0am, "souporpo...@gmail.com"
wrote:
> On Apr 4, 11:54=A0am, "souporpo...@gmail.com"
> wrote:
>
>
>
>
>
> > On Apr 3, 3:50=A0pm, "souporpo...@gmail.com"
> > wrote:
>
> > > On Apr 3, 11:33=A0am, "souporpo...@gmail.com"
> > > wrote:
>
> > > > On Apr 3, 9:44=A0am, "HansH" wrote:
>
> > > > > schreef in berichtnews:14725e19-7051-4743-=
8c73-0239fe05b1c7@c65g2000hsa.googlegroups.com...
> > > > > On Apr 2, 10:43 pm, sean dreilinger wrote:=
>
> > > > > > The website in question has a login form. The user enters the em=
ail id
> > > > > > and if valid the next form is shown. For some reason, upon =A0su=
bmission
> > > > > > of the form the IP address is shown. Whereas if I try the second=
page
> > > > > > with proxy in the URL, it works.
>
> > > > > > Let me try to illustrate this as follows:
>
> > > > > >http://proxy/survey08app/loginForm.htm---> shows up correctly
>
> > > > > > Fill the form and expecthttp://proxy/survey08app/page2.htm
> > > > > > but instead I gethttp://192.168.5.10/survey08app/page2.htm
>
> > > > > > However, if I tryhttp://proxy/survey08/page2.htmitshowsup
> > > > > > correctly and I am able to complete the survey with proxy settin=
gs.
>
> > > > > > There is nothing special about page2 to prevent the proxy settin=
gs.
>
> > > > > Check for missing or ampty action atribute at th