wrong host/portno when using virtual hosting in Apache2

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

wrong host/portno when using virtual hosting in Apache2

Yanni Chiu
I have Apache2 set up to proxy a Seaside image
on another machine (engine1:9191). I access the
application using something like "abc.com/seaside/app1".
When looking at the page using view source of
Firefox, I see that I get a mixture of URLs,
where some are "abc.com", and some are
"engine1.com:9191". All the Seaside toolbar links,
and the AJAX links have the wrong "engine1" name.

The links work, but the AJAX stuff does not.
I'm wondering whether this might be the cause.

I'm currently developing on old versions:

   Squeak-3.8
   Seaside2.6a3-lr.51
   Scriptaculous-lr.40

Does this behaviour look familiar to anyone?
Is it fixed in later revisions?
TIA.

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: wrong host/portno when using virtual hosting in Apache2

Lukas Renggli
> I have Apache2 set up to proxy a Seaside image
> on another machine (engine1:9191). I access the

Did you set the property

     ProxyPreserveHost On

in Apache?

> The links work, but the AJAX stuff does not.
> I'm wondering whether this might be the cause.

For some cases (AJAX, HTTP-redirects) Seaside needs to generate an
absoute path and therefor is required to properly know its
domain-name.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: wrong host/portno when using virtual hosting in Apache2

Yanni Chiu
Lukas Renggli wrote:
>> I have Apache2 set up to proxy a Seaside image
>> on another machine (engine1:9191). I access the
>
>
> Did you set the property
>
>     ProxyPreserveHost On
>
> in Apache?

That fixed it. Many thanks.

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside