Re: [users@httpd] Problem with Virtual Hots

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Stephen wrote:
> I am trying to use my Linux box (Red Hat ) as an apache server (2.0.40 )
> for testing and development but I cannot get the virtual hosting working.
> 
> I am accessing from a Windows machine and the domains are resolved in
> the windows host file. I can ping them just fine, and they are resolved
> to the Linux box.
> 
> When I access by http://"IP address", I get the apache welcome page.
> 
> I see the access to the IP address in the log file.
> 
> When I try to access http://www.domaintest.com I get a "server not
> found" error in Firefox. I see nothing in the apache logs.
> 
> I have run httpd -t -D DUMP_VHOSTS and apache tells me the syntax is OK.
> 
> In httpd.conf I have:
> 
> NameVirtualHost *:80
> 
> <VirtualHost *:80>
>    DocumentRoot /home/stephen/www/domaintest
>    ServerName www.domaintest.com
>    ServerAdmin stephen@domaintest
>    ServerSignature email
> </VirtualHost>
> 
> Can someone help me get this figured out?

Try ping -a www.domaintest.com in a DOS prompt.
If it doesn't resolve the right IP address your hosts file needs looking
at again.


> Thanks
> Stephen
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux