How to host multiple websites with MAMP Pro and DynDNS

How to configure MAMP Pro with DynDNS to have multiple websites hosted on your computer, each with their own unique public URL.

Published in Web Development on Friday, July 25, 2008 by Ben Vallack
0 comments

RSS Print Email to a friend

I've been trying to set up a system on my local machine that enables me to have multiple sites running as virtual hosts, each with it's own public URL so I can show clients etc before actually putting it on a remote server. The solution I soon realised would be MAMP Pro in conjunction with DynDNS.

However I couldn't quite work out how to set it up to work with multiple hosts. I got a domain in DynDNS pointing to my IP address but it would only show the default host set up in MAMP. I thought the wildcard subdomain on the DynDNS domain would correspond with the name of the host in MAMP. However, they all just showed the default host.

It turns out that you need to set up individual domain hosts in DynDNS and then use the full url of those in MAMP Pro as the name of the host (or just as an alias). For example, lets say you have two hosts in MAMP Pro, one called test and one called test1. In DynDNS you need to set up two hosts, you can call them whatever you like but lets say you choose test.dyndns.info (the second part can be one of several choices if you have a free account) and test1.dyndns.info. You will then need to add an alias to your hosts in MAMP Pro and call them test.dyndns.info and test2.dyndns.info for your respective hosts.

That's it - simple once you know but I couldn't find this piece of info anywhere!

About the author

Ben Vallack is Creative Director at Phototropic Productions. His many roles include web design, photography, camera operating and editing.

Comments

Notebook

Products

Landscape Leaps

Enjoy the view from 96 stunning interactive 360º panoramic images and leap from one location to another. Learn more

Swiftlet

Swiftlets are a kind of Bookmarklet. Once clicked, they email the address of the page you're currently looking at to a person you choose.
Get Started

Platypus

Platypus is a fast, lightweight, 'web 2' application that makes timing tasks and creating invoices effortless. Features zero learning curve interface with live editing.
Get Started

Services

Our industry leading website design service now comes with our new content management system, PhototropiCMS. This allows you to control your website with revolutionary ease. You can add image galleries, videos, blogs, livechat, a shopping basket, and much, much more. Learn More

By using a small High Definition video camera we can be very flexible as well as discrete. Virtues that many production companies loose in their efforts to 'appear professional' by using bigger cameras where they aren't always necessary. Learn More

Our background in fine art means we can take high quality photographs in a variety of situations. Whether you need some pictures on a white backgrounds of a product line-up or are after a family portrait, our photographs will leave a lasting impression.
Learn More

As with websites, DVDs need to be accessible and usable. The creative freedom allowed by both can be easily over-used. We know where to stop and allow the content to do its work. Our DVD Authoring services can include any of the features the DVD format supports as well as high definition Blu-Ray encoding. Learn More

Advertisement