Re: [SLE] Apache NameVirtualHost and DNS
You need to be sure to use <VirtualHost IP goes here> DocumentRoot /home/sitedr/www ServerName www.whatever.com CustomLog /home/sitedr/www/logs/sitedirection.com-access_log common ErrorLog /home/sitedr/www/logs/sitedirection.com-error_log </VirtualHost> Is this the way it is? Regards, Jon Jon R. Doyle Systems Administrator Document Solutions, Inc. 1611 Telegraph Avenue Ste. 1010 Oakland, Ca. 94612 510-986-0250
Rogier Maas
02/14/00 02:42PM >>> Joakim Schramm wrote: Ok I have tried this @ both comp.infosystems.www.server.unix and comp.protocols.dns.bind, but just got no or very poor responses. So I hope someone here "@home" with distro can give some usefullness to it.
I have about 15 virtualhosts set up as IP based, but now I'm running out of my avail ips so thought switch to namebased, easy case I thought, but... somehow I don't get it right. I'm experimenting with 3 domains which is rather sleeping at the moment and have pointed them to the same IP. From a local view all seams right, nslookup and ping works fine, but when trying access with IE or NC I can just get to the first which already had this IP asigned. One of the other I can ping to the new IP but the third insist on returning the old IP when I ping it. I set al this up about 36 hours ago, so it shouldn't realy be a matter of propagation. I have run "rcnamed restart", restarted apache and the httpd.conf correct, I'm 100% sure at least regarding the <Virtualhost part>.
What I wonder is if anyone here have a successfull NameVirtualHost running and if I then can have a look on how the DNS is set up? What I have done is basicly to change the: host.domain.com. A 195.22.70.183 part in each zonefile to have the same IP (the one above) and then done the same in the reverse zone file, now having 3 different (spelled) host.domain.com there PTR to the same IP. I'm not sure if this is the way it's thought of to be done, but I can't figure it any other way. They all need to have the same IP.
Anyone have a clue on this? I can post/mail real data if nessesarry, but thought it might not be needed. Probably it's a simple small detail I have missed, but I'm just too dumb to figure it out:)
Joakim
I have about 5 name-based servers. My servers are as follows: Default: IP=any port=any name=www.hosting-company.com customer1: IP=101.102.103.104 port=80 name=www.customer1.com customer2: IP=101.102.103.104 port=80 name=www.customer2.com customer3: IP=101.102.103.104 port=80 name=www.customer3.com customer4: IP=101.102.103.104 port=80 name=www.customer4.com customer5: IP=101.102.103.104 port=80 name=www.customer5.com My hosting-company.com-zonefile DNS looks like this: www.hosting-company.com. A 101.102.103.104 The company1, 2 and 3-zonefiles also look this way: www.company1.com. A 101.102.103.104 www.company2.com. A 101.102.103.104 etc, etc. I think you should only have one IP address pointing to your own name. The rest is not important; they are virtual. (Your hostname is: www.hosting-company.com, the rest have no reverse names) If you REALLY have setup apache in the correct manner, you shouldn't have any problems. I've found out that I have to specify both IP addresses and ports in order to get apache to listen. If I specify ONLY the name (no IP addy and/or port), apache just displays the first (default) server. Good luck! Rogier -- 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/Doku/FAQ/
participants (1)
-
Jon@document-solutions.com