[Zope3-Users] Redirect domain.com to www.domain.com

6 views
Skip to first unread message

christophe petit

unread,
Apr 20, 2011, 1:09:33 AM4/20/11
to blue...@zope.org, zope3-users
Hello,

I have just installed zope 3 and I would like to know how to make redirect the url "http://domain.com" to "http://www.domain.com".
I have not installed apache in front of zope 3, I used prerouting iptables rule to forward port 80 to zope 3 HTTPPORT.

Can i dot this without Apache and its "RewriteRule" in .htaccess ?

Any help would be appreciated,

Thanks.

Andreas Jung

unread,
Apr 20, 2011, 1:22:26 AM4/20/11
to christophe petit, zope3-users, blue...@zope.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Running Zope on a public network behind a reverse is highly recommended
and best-practice...so the answer would be: use rewrite rules..

- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJNrm2SAAoJEADcfz7u4AZj6BsLvj8J+v6z15OFDSGCn8jOIALc
NeR/t2t8CpgX5ly7sbIs8VzrkfXCLQit+8Rxup7K6l7V6h8IFJP8w58ffphqNfWn
0GJagriExDqKgMoHYmzLacDcUeCdLpujPmRKkZlcyFtnL16FBT0bXbFy/MTqvFrv
LV1yJAEV3Wwix7ByGhipt5LK2qmORpbrUY/3L0eNgRDJeuW+VUgCQS3HRDVpG+aJ
HggkieeYhdEEE4aZzRSxx03GlBiVfHsA0dFiKVzISNtUn8vL8m/AsqySiKZvZ+6Q
tzaXxShMvK6UEOkjIJc2qxfBAdoFOS/gfVRLoMnglNF3K1sdO/oUiVhKFUiQfmEU
58rkDLc8BgznKf5LkzboBhAQhv0wQcIYzf7gLn9KAUxIM/NSdXzBL0tgIpi3awkI
eRjHQrmwfYHo0kY3x1OmEcXOEHw/pKa1G0BgBOBKXDtCSfi9Udbvq6QXqUVDrbXX
xeKNsOiwlW89iCcZk7b3HuLAjh8nW/A=
=UQYF
-----END PGP SIGNATURE-----

lists.vcf

christophe petit

unread,
Apr 20, 2011, 1:48:15 AM4/20/11
to li...@zopyx.com, blue...@zope.org, zope3-users
So even Twisted framework doesn't allow to to this ?

Thanks.

2011/4/20 Andreas Jung <li...@zopyx.com>

Richard Watson

unread,
Apr 20, 2011, 4:17:48 AM4/20/11
to li...@zopyx.com, blue...@zope.org, zope3-users

----- Original Message -----

> So even Twisted framework doesn't allow to to this ?
>
> Thanks.

Of course there's nothing stopping you returning any HTTP header you want, however I'm not sure if Zope3 even knows which domain you're using to call it. If it does you'd just need to search for the lack of www in that before sending something back, but much easier to use Apache/Nginx.

_______________________________________________
Zope3-users mailing list
Zope3...@zope.org
https://mail.zope.org/mailman/listinfo/zope3-users

Reply all
Reply to author
Forward
0 new messages