httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Bowerman" <ja...@hotmail.com>
Subject [users@httpd] Resolving domain names to local workstation
Date Tue, 30 Dec 2003 03:20:52 GMT


Hi

I am using a stand-alone machine and I want to set up apache so when I type 
in certian domain names (d.net and q.net) in my wen browser it resolves to 
the local machine.

I believe I have made the appropriate changes (see below).  However, when I 
type in d.net or q.net it often fails (about 90% of the time) ... but 10% of 
the time it works... totally confusing.

Any ideas?

thanks, Jason

------

I have put this in my HOSTS file:

    127.0.0.1 q.net.au
    127.0.0.1 d.net.au


and added this to httpd.conf:

    ServerName 127.0.0.1
    NameVirtualHost *

    <VirtualHost *>
        ServerAdmin admin@q.net
        DocumentRoot c:/q.net
        ServerName q.net
        ErrorLog c:/q.net/logs/q.net-error_log
        CustomLog c:/q.net/logs/q.net-access_log common
    </VirtualHost>

    <VirtualHost *>
        ServerAdmin admin@d.net
        DocumentRoot c:/d.net
        ServerName d.net
        ErrorLog c:/d.net/logs/d.net-error_log
        CustomLog c:/d.net/logs/d.net-access_log common
    </VirtualHost>

_________________________________________________________________
Get less junk mail with ninemsn Premium. Click here  
http://ninemsn.com.au/premium/landing.asp


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message