Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I work on several PHP and JSP websites on my MacBook (running development Apache server and Tomcat) and they all are hosted on shared servers.

What I want to do is to clone my MacBook to a Mac mini server, connect it to a separate cable modem and router, assign a static IP to it and run a production server here in my office.

One of my registrars lets me edit DNS records, so I guess I can just point the DNS to that static IP and manage the rest with virtual hosts, right?

Another registrar only lets me edit nameservers. It seems like I can run a DNS server on Mac; is it a simple thing to do?

Is it feasible, then, to host multiple websites on a Mac in this manner?

share|improve this question
up vote 0 down vote accepted

Hosting websites on a Mac is pretty much the same as doing it on any *nix host.

You can install MAMP, giving you Apache, PHP, Mysql in one shot or you can run the native install of Apache that comes pre-packaged into OSX. If you're new, I'd suggest the MAMP route, as it takes care of most of the nitty-gritty details for you. MAMP doesn't have Virtual Hosting enabled by default, but it's easy enough to configure. From there, you can setup Virtual Hosts and point them to different directories and you're off! Once that's done, just setup A records on your DNS server and point them to your IP Address.

For help on setting up Virtual Hosts in MAMP, see Here

share|improve this answer
I already have apache, php, mysql and tomcat running on my development machine. I wasn't sure if just editing httpd-vhosts file would do... Also, I'm mostly concerned with the DNS. – dfo Jun 23 '11 at 22:27
Although your answer is very encouraging, Thanks! – dfo Jun 23 '11 at 22:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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