S
S
Sujimoshi2015-08-08 01:16:30
Apache HTTP Server
Sujimoshi, 2015-08-08 01:16:30

How to set up a DNS server on MAC OS X?

I use MAMP local assembly of the web server on MAC OS X.
In order not to register a new host, Httpd.conf used vhost_alias and configured automatic addition of new virtual hosts to Apache in this way:

UseCanonicalName Off
ServerName loc
ServerAlias ​​*.loc
VirtualDocumentRoot /Volumes/HDD/Sites/%1

But this only half automates the addition of the host, I'm still forced to add new addresses to the hosts file. As far as I understand, not to do this every time. I need to start a local DNS server and configure it to redirect me automatically (/Sites/mysite -> mysite.loc). Hence the question of how to run and configure this dns.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question