Three web sites in one box on one IP.
Hello SuSE folkz, It's may be a stupid question but I couldn't find a decent answer on it. Assume that you have registered three domains: xyz1.com xyz2.com and xyz3.com with different IP's They all pointed to your ISP your_isp.com You have just ONE static IP from your ISP. ISP runs DNS with NAT, so all your three registered domains are pointing to your box. Now the question: Is it possible to create three virtual independent domains/websites on you box using just one IP provided by your ISP? Thank you very mush in advance for any information. Alex P.S. Our IS guys couldn't answer this question :)
On Thu, 21 Feb 2002, Alex Daniloff wrote:
It's may be a stupid question but I couldn't find a decent answer on it. Assume that you have registered three domains: xyz1.com xyz2.com and xyz3.com with different IP's They all pointed to your ISP your_isp.com You have just ONE static IP from your ISP. ISP runs DNS with NAT, so all your three registered domains are pointing to your box. Now the question: Is it possible to create three virtual independent domains/websites on you box using just one IP provided by your ISP?
Hmm, above you write, that these three domains have different IP addresses, now you talk about having only one IP - it is not quite clear to me what you really want to achieve. Anyway, Apache is capable of both - you can either host multiple domains with different IP addresses (by using IP aliasing on a single NIC). Example: Interface IP Domain --------------------------------- eth0 10.0.1.1 www.xyz1.com eth0:0 10.2.4.1 www.xyz2.com eth0:1 10.2.4.3 www.xyz3.com Just tell each Apache instance which IP address it should listen to. Alternatively you can have multiple domain names pointing to the same IP address (virtual domains). See the Apache docu in how to set up these. Please note, that the client side (the browser) must be capable of this addressing virtual domains as well (it's part of the http protocol) - I would assume that all current browser do support this feature.
Our IS guys couldn't answer this question :)
Really? They must be Windows-People :) Bye, LenZ -- ------------------------------------------------------------------ Lenz Grimmer SuSE GmbH mailto:grimmer@suse.de Deutschherrnstr. 15-19 http://www.suse.de/~grimmer/ 90429 Nuernberg, Germany The best defense against logic is stupidity.
Is it possible to create three virtual independent Hiya,
On Friday 22 February 2002 00:52, Alex Daniloff wrote: this is an Apache issue and you need to use the <NameVirtualHost> Directive. Only woks with HTTP 1.1, but that should not be a prob. Check it out at apache.org hth regards Dan
yes, very easy, install apache, setup virtual hosts for each domain. go to http://apachetoday.com/news_story.php3?ltsn=2000-07-17-001-01-PS You said:
Hello SuSE folkz, It's may be a stupid question but I couldn't find a decent answer on it. Assume that you have registered three domains: xyz1.com xyz2.com and xyz3.com with different IP's They all pointed to your ISP your_isp.com You have just ONE static IP from your ISP. ISP runs DNS with NAT, so all your three registered domains are pointing to your box. Now the question: Is it possible to create three virtual independent domains/websites on you box using just one IP provided by your ISP?
Thank you very mush in advance for any information.
Alex
P.S. Our IS guys couldn't answer this question :)
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
Chad Whitten Network/Systems Administrator neXband Communications cwhitten@nexband.com
participants (4)
-
Alex Daniloff
-
Dan Am
-
dog@intop.net
-
Lenz Grimmer