[Seaside] Wrong Domain-Name using Apache as Reverse Proxy
Boris Popov
boris at deepcovelabs.com
Mon Jan 29 21:42:58 UTC 2007
<Location /online>
Order deny, allow
Allow from all
# Proxy all requests to /online down to the actual host running Seaside
ProxyRequests Off
ProxyPreserveHost On
ProxyPass http://192.168.0.2:8008/online
ProxyPassReverse http://192.168.0.2:8008/online
</Location>
That works for me, although you can just set the server hostname in the
application properties as well if you can't figure out Apache's side of
things,
(self registerAsApplication: 'online')
preferenceAt: #serverHostname put: 'www.mybeautifuldomain.com';
yourself
Hope this helps,
-Boris
--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4
boris at deepcovelabs.com
CONFIDENTIALITY NOTICE
This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.
Thank you.
-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Adrian
Schmitt
Sent: Monday, January 29, 2007 1:32 PM
To: seaside at lists.squeakfoundation.org
Subject: [Seaside] Wrong Domain-Name using Apache as Reverse Proxy
Hi!
Now I got finally running seaside behind an apache-1.3-reverse-proxy..
(was not too hard)
But there is a problem now.. I get the wrong links. The links I am
seeing on the site have the domain of the server where the image is
running.. but they need to have the domain of the server where apache
is running.
The links in the site look like this:
a href="http://10.233.200.2/seaside/store"
10.233.200.2 is the address of the machine where the image is running
(as seen from the webserver where the apache reverse-proxy is running)
Should be like this:
a href="http://mybeautifuldomain.com/seaside/store"
Can I tell seaside to use another domain to construct the links?
Thank you
Adrian
_______________________________________________
Seaside mailing list
Seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
More information about the Seaside
mailing list