Re: [CentOS] Apache: confusion about virtual hosts and DNS on a local network

2009-09-20 Thread Niki Kovacs
John R Pierce a écrit : > thats what serveralias is for... > Thanks. Now everything works as expected. Niki ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Apache: confusion about virtual hosts and DNS on a local network

2009-09-19 Thread Les Mikesell
Niki Kovacs wrote: > nate a écrit : >> I think your issue is this, if these are different >> virtual hosts I would set the ServerName to be >> the name of the virtual host itself. >> > > I think I found the error. Not exactly sure, but here goes. My virtual > host configuration works OK when I vi

Re: [CentOS] Apache: confusion about virtual hosts and DNS on a local network

2009-09-19 Thread John R Pierce
Niki Kovacs wrote: > nate a écrit : > >> I think your issue is this, if these are different >> virtual hosts I would set the ServerName to be >> the name of the virtual host itself. >> >> > > I think I found the error. Not exactly sure, but here goes. My virtual > host configuration works

Re: [CentOS] Apache: confusion about virtual hosts and DNS on a local network

2009-09-19 Thread nate
Niki Kovacs wrote: > Only the shorter form doesn't work, which means > http://microlinux.buildbox and http://kikinovak.buildbox both result in > viewing site 1. Which lets me carefully deduce that virtual hosts need > to be called by their fully qualified domain name. Yeah that sounds good, mysel

Re: [CentOS] Apache: confusion about virtual hosts and DNS on a local network

2009-09-19 Thread Niki Kovacs
nate a écrit : > > I think your issue is this, if these are different > virtual hosts I would set the ServerName to be > the name of the virtual host itself. > I think I found the error. Not exactly sure, but here goes. My virtual host configuration works OK when I view each site with its fully

Re: [CentOS] Apache: confusion about virtual hosts and DNS on a local network

2009-09-19 Thread nate
Niki Kovacs wrote: > NameVirtualHost *:80 > > >ServerAdmin i...@microlinux.fr >DocumentRoot /var/www/html/microlinux >ServerName buildbox.presbytere.local [..] > >ServerAdmin cont...@kikinovak.net >DocumentRoot /var/www/html/kikinovak >ServerName buildbox.presbytere.local

Re: [CentOS] Apache: confusion about virtual hosts and DNS on a local network

2009-09-19 Thread Niki Kovacs
nate a écrit : > > just add a record > > microlinux.buildbox IN A #.#.#.# > That gives me a partial success. I added my two virtual hosts to the DNS server, like this: babasse A 192.168.1.1 buildboxA 192.168.1.2 lifebookA 192.168.1.3 raymond

Re: [CentOS] Apache: confusion about virtual hosts and DNS on a local network

2009-09-19 Thread nate
Niki Kovacs wrote: > But that doesn't work out (yes, I restarted httpd :oD), because I think > what's missing here is that I have to somehow add microlinux.buildbox > (and later kikinovak.buildbox) to my local DNS server (only how?)... just add a record microlinux.buildbox IN A #.#.#.#