Help with HTTPD...Very Easy!

O.k! I want to host 2 website from my home server. The only problem is ..this is the error I recieve when I restart apache:


(EAI 2)Name or service not known: Cannot resolve host name www.blahblah.com --- ignoring!


Now this is the Virtual Host entries I have in my httpd.conf:



# You may use the command line option '-S' to verify your virtual host
# configuration.
#

<VirtualHost www.mydomain.com>
ServerName mail.mydomain.com
ServerAlias mail.*
ServerAdmin admin@mydomain.com
DocumentRoot /home/sisco/public_html/webmail
</VirtualHost>

#
# Use name-based virtual hosting.
#

NameVirtualHost 24.195.240.184:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost www.mydomain.com>
ServerAlias www.mydomain.com mydomain.com
ServerAdmin mydomain@hotmail.com
DocumentRoot /home/sisco/public_html
ServerName www.mydomain.com
ScriptAlias /cgi-bin/ /home/sisco/public_html/cgi-bin/
</VirtualHost>

<VirtualHost www.blahblah.com>
ServerAlias www.blahblah.com blahblah.com
ServerAdmin admin@siscohosting.com
DocumentRoot /home/wahid/public_html
ServerName www.blahblah.com
ScriptAlias /cgi-bin/ /home/wahid/public_html/cgi-bin/
</VirtualHost>


Please let me know what I'm doing wrong...Someone mentioned Name Based Hosting because I only have 1 IP address?..Is that what I'm doing? I dunno ..Help!

FYI...I'm on RH9, PHP, MySQL, Qmail so on and so forth..and of coarse I changed the real domain names to something fake Help with HTTPD...Very Easy!

Thankz!

 

 

 

 

Top