Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: How to set up a wildcard DNS' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: How to set up a wildcard DNS
Authored by: brunolapeyre on Nov 08, '05 11:56:55AM

... Isn't the following matching to your needs ?

  1. Open Applications/Utilities/NetInfo Manager
  2. Unlock the application.
  3. select "Machines" in the column then "localhost"
  4. select "Edit" menu -> "Duplicate" to have a copy of localhost
  5. edit the "name" property's value : the chosen name will have to be used in your httpd.conf settings :

Example (with "chosen_name" being the value of the "name" property in NetInfo Manager ) :


<VirtualHost chosen_name>                                 
    ServerAdmin webmaster@anything
    DocumentRoot /pathtositefolder
    ServerName anything
    ErrorLog /pathtoyourerrorlogfile
    CustomLog /pathtoyourcustomerrorlogfile
</VirtualHost>

Then restarting Apache and simply typing http//chosen_name/ in your web browser should open the web site located at /pathtositefolder on your machine. Isn't it ?



[ Reply to This | # ]
10.4: How to set up a wildcard DNS
Authored by: hagus on Nov 08, '05 04:05:01PM

That doesn't entirely match my needs. Every time I need to create a new vhost, I would have to edit the netinfo database, then update httpd.conf. With this solution I just need to edit httpd.conf and that's it. Another comment here even implies the httpd.conf step could be made redundant ... I'm investigating that too.



[ Reply to This | # ]