Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a CentOS machine running Apache. I have a few virtual hosts set up and they run just fine. An example of a setup that's working fine is:

<VirtualHost 10.10.10.38:80>
    ServerName site.domain.com
    DocumentRoot /var/www/html/site
    <Directory /var/www/html/site>
        Options -Indexes
        Order deny,allow
        Deny from all
        Allow from {IP address list}
    </Directory>
    ErrorLog /etc/httpd/logs/site.error_log
    CustomLog /etc/httpd/logs/site.access_log common
</VirtualHost>

<VirtualHost 10.10.10.38:443>
        ServerName site.domain.com
        DocumentRoot /var/www/html/site
        <Directory /var/www/html/site>
            Options -Indexes
            Order deny,allow
            Deny from all
            Allow from {IP address list}
        </Directory>
        ErrorLog /etc/httpd/logs/site.error_log
        CustomLog /etc/httpd/logs/site.access_log common
        SSLEngine on
        SSLCertificateFile    /etc/pki/tls/certs/localhost.crt
        SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
    </VirtualHost>

This is in

/etc/httpd/conf/httpd.conf

I have another entry almost exactly like that except that

site.domain.com

becomes

site1.domain.com

and points to a different folder in /var/www/html/.

I cannot get the browser to locate site1.domain.com. The

site.access_log

file is empty. I assume that means that the browser is not able to resolve the DNS. What am I missing out on?

share|improve this question

closed as off topic by paulmorriss, John Conde Sep 27 '12 at 1:10

Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
did you add an entry to your name server? –  Sean Kimball Sep 5 '11 at 16:26
    
Yes. I added an entry to the /etc/hosts file. –  Gaurav Sharma Sep 6 '11 at 5:25

1 Answer 1

up vote 0 down vote accepted

It was a network error. Resolved!

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.