Try

  NameVirtualHost 10.0.10.76
<VirtualHost *>       <-- or you can replace the *'s with 10.0.10.76
blah
</VirtualHost>
<VirtualHost *>       <-- or you can replace the *'s with 10.0.10.76
blah
</VirtualHost>

I've never seen names in place of the *'s, I have seen IP addresses, but 
never names.. something you can try..

Jake


At 01:53 PM 5/15/2002 -0700, you wrote:
>Hello all,
>
>I'm having some issues with Apache virtual hosting. I
>have Red Hat 7.0 installed, IP address of 10.0.10.76
>with DNS 'A Record' name 'slin01dx'. I have two apache
>virtual hosts defined that are called
>timesheet.graybar.com and oncall.graybar.com. I have
>only recently added the oncall.graybar.com entry. Both
>of these entries have DNS 'CNAME' records that point
>back to 'slin01dx'.
>
>The problem that I'm having is that regardless of
>which name you type in, the first virtual host entry
>in httpd.conf is the site that you're taken to. In
>other words, if timesheet.graybar.com is listed first
>in httpd.conf and you type in oncall.graybar.com in
>your browser, it takes you to the
>timesheet.graybar.com site, and vice-versa.
>
>Does anyone know what might be causing this? Here's
>what my virtual host entries look like:
>
>NameVirtualHost 10.0.10.76
><VirtualHost timesheet.graybar.com>
>ServerAdmin stephen.spalding@groupwise
>ScriptAlias /cgi-bin/ "/home/tss/cgi-bin/"
>DocumentRoot /home/tss/htdocs
>ServerName timesheet.graybar.com
>ErrorLog /home/tss/logs/tss.error
>TransferLog /home/tss/logs/tss.access
>   <Directory /home/tss/htdocs>
>    AuthType Basic
>     AuthName isonly
>     AuthUserFile /home/main/auth/passwd
>     AuthGroupFile /home/main/auth/group
>     require valid-user
>     require spaldst
>     AllowOverride None
>     Options +ExecCGI +Indexes
>     DirectoryIndex index.pl
>     order allow,deny
>     allow from all
>   </Directory>
></VirtualHost>
>
><VirtualHost oncall.graybar.com>
>ServerAdmin stephen.spalding@groupwise
>ScriptAlias /cgi-bin/ "/home/oncall/cgi-bin/"
>ScriptAlias /oncall/cgi-bin/ "/home/oncall/cgi-bin/"
>Alias /oncall/images/ "/home/oncall/images/"
>Alias /oncall/html/ "/home/oncall/html/"
>DocumentRoot /home/oncall/cgi-bin
>ServerName oncall.graybar.com
>ErrorLog /home/oncall/logs/oncall.error
>TransferLog /home/oncall/logs/oncall.access
>   <Directory /home/oncall/cgi-bin>
>    AuthType Basic
>     AuthName isonly
>     AuthUserFile /home/main/auth/passwd
>     AuthGroupFile /home/main/auth/group
>     require valid-user
>     require oncall
>     AllowOverride None
>     Options +ExecCGI +Indexes
>     DirectoryIndex main_page.pl
>     order allow,deny
>     allow from all
>   </Directory>
></VirtualHost>
>
>Thanks!
>
>-Stephen Spalding
>
>
>__________________________________________________
>Do You Yahoo!?
>LAUNCH - Your Yahoo! Music Experience
>http://launch.yahoo.com
>
>
>
>_______________________________________________
>Redhat-list mailing list
>[EMAIL PROTECTED]
>https://listman.redhat.com/mailman/listinfo/redhat-list




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to