Is it possible to run two Zopes - on ports 80 and 8080 - each with its own IP address (and domain name)? I may be wrong, but I don't believe the DNS is interested in port numbers...
Mark McEahern:
Take a look at Z2.py's parameter list.
I didn't think Zope had that much to do with it, rather that it was a DNS or OS question. Maybe my ISP has confused me, but currently, if I point a domain at an IP which is assigned to that machine, it goes to the Zope running on port 80. How can I direct one IP/domain to each Zope? Thanks, Ken
[Ken Dobruskin wrote (ken@dobruskin.com) on 2/10/03 4:50 PM]
I didn't think Zope had that much to do with it, rather that it was a DNS or OS question. Maybe my ISP has confused me, but currently, if I point a domain at an IP which is assigned to that machine, it goes to the Zope running on port 80. How can I direct one IP/domain to each Zope?
Mark's advice was correct. z2.py has everything to do with which IP and ports Zope's http, ftp and webdav servers bind to. once you have that set up take a look at one of the many howto's on using rewrite rules in apache or your fav webserver to get zope to answer on http requests on a different port, if that's what you want it to do. <--> george donnelly - http://zettai.net/ - "We Love Newbies" :) Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - ICQ: 51907738 - e:george@zettai.net
[Ken Dobruskin wrote (ken@dobruskin.com) on 2/10/03 4:50 PM]
I didn't think Zope had that much to do with it, rather that it was a DNS or OS question. Maybe my ISP has confused me, but currently, if I point a domain at an IP which is assigned to that machine, it goes to the Zope running on port 80. How can I direct one IP/domain to each Zope?
DNS doesn't care about ports, but your web-browser does. It assumes that if you don't specify a port in HTTP mode, that it should look at port 80, the 'well-known' port for HTTP. So if you have Zope1 on 127.0.0.1:80 Zope2 on 127.0.0.1:8080 Zope3 on 127.0.0.1:12345 pointing your browser at 127.0.0.1 implies 127.0.0.1:80, which is Zope1. You can't (so far as I know!) point a DNS record at a combination of number and port. What you can do is get your webserver to rewrite requests for the name 'Zope2' to the right number:port combo. Exactly how that is done depends heavily on your setup. --jcc
On Mon, 10 Feb 2003 17:29:22 -0600 J Cameron Cooper <jccooper@jcameroncooper.com> wrote:
You can't (so far as I know!) point a DNS record at a combination of number and port.
at my domain provider i can do something like that mydomain.com ---> subdomain www - http://123.123.123.123.:1234/subdir1 mydomain.com ---> subdomain hereis - http://123.123.123.123.:4321/subdir2 by this www.mydomain.com and hereis.mydomain.com are rerouted don't ask me how that works, but it does at the firewall i route the requests to differenz machines or zope instances via portmapping <fyi> fritz (-:fs)
participants (4)
-
george donnelly -
J Cameron Cooper -
Ken Dobruskin -
zope