Apache Name Based Site Configuration, Someone please help !

Hello

I am trying to configure httpd.conf manually for name based virtual sites.

IP based sites work without problem but as soon as I add a virtual name based site " all undefined sites resolved to server's shared IP go to that new site !!!!! except the domain that most go to it Apache Name Based Site Configuration, Someone please help !

Let me show you:

NameVirtualHost 192.168.0.1

<VirtualHost 192.168.0.1>
ServerName atlas.com
DocumentRoot /home/atlas/public_html
ServerAlias *.atlas.com
Options ExecCGI Indexes
</VirtualHost>
As soon as I add above and restart httpd daemon all references resolved to 192.168.0.1 go to /home/atlas/public_html (including ip address 192.168.0.1 itself) except atlas.com. (I have put a html page in this directory with the text "welcome to atls.com")

When I type atlas.com (which resolves to 192.168.0.1 too) the following error comes to screen :

Directory Listing Denied
This Virtual Directory does not allow contents to be listed.
Can someone please help me with this nightmare?

Thank you

Techi

 

 

 

 

Top