I am attempting to setup hosting for separate websites on single static IP address. I set up vhost file, and neither the main domain,(mydomain.com) or the sub domain (test.mydomain.com) is accessible via the web. It seems to not be able to resolve either. Before i enabled the vhost, mydomain.com was accessible. after enabling vhost for test.mydomain.com neither site is available. here is my vhost conf file for the sub domain. if i disable virtyual hosting, the primary domain (mydomain.com) is accessible:
#
# sub.domain.com (/etc/apache2/sites-available/sub.domain.com)
#
<VirtualHost 10.0.0.10:80>
ServerAdmin e-mail@bellsouth.net
ServerName test.mydomain.com
ServerAlias test.mydomain.com
# Indexes + Directory Root.
DirectoryIndex index.html index.htm index.php
DocumentRoot /var/www/virtual
# CGI Directory
ScriptAlias /cgi-bin /var/www/virtual/cgi-bin
<Location /cgi-bin>
Options +ExecCGI
</Location>
# Logfiles
ErrorLog /var/www/virtual/logs/error.log
CustomLog /var/www/virtual/logs/access.log combined
</VirtualHost>
do i need to have an internal DNS setup to point the request to the proper ip address.
I have a free DNS service that points ip traffic for my primary domain to the internal web server via my router.
any and all help is appreciated
Bookmarks