• Home
  • Contact
  • Got Apps?
  • Subscribe
    • RSS Atom Feed
    • Comments Feed
  • FAQs
    • Mac360′s FAQs
    • Bambi’s FAQs
    • Tera’s FAQs
  • About
    • About Mac360
    • Copyright Notice
    • Privacy Policy
    • Service Terms Agreement
  • Writers
    • Alexis Kayhill
    • Bambi Brannan
    • Carol Miller
    • Jack Miller
    • Jeffrey Mincey
    • Kate MacKenzie
    • Natalia Nowak
    • Ron McElfresh
    • Tera Patricks
    • Wil Gomez
  • Archive
    • Complete Archive
    • Cheap Mac Apps
    • Mac App Reviews
    • Tips and Tricks
    • News and Comment
  • Mac360 on Twitter

Mac360

Mac App Reviews & Apple News

  • Home
  • Cheap Apps
  • App Reviews
  • Tips & Tricks
  • News & Comment
  • Mac Blogs
    • Bohemian Boomer
    • McElfresh.org
    • McSolo
    • NoodleMac
    • PixoBebo
    • TeraTalks
  • Thursday, May 17, 2012
Home » Mac App Reviews » Get A Virtual Web Host On Your Mac That Just Works.

Get A Virtual Web Host On Your Mac That Just Works.

By Kate MacKenzie - Thursday, August 30, 2007

VirtualHostYes, your Mac can be a web site server. It’s easy. What if you just want to fake it?

Make your Mac a web server without the domain name? Can do. VirtualHostX is the niftiest one trick pony of the summer—it just works.

The Mac360 guys are all into setting up a Mac as a web server. Ron even has his own daily blog set up on a Mac mini on his desk. What if you don’t want to go to all that trouble but still want your Mac to host a faked domain name?

That’s called virtual hosting. Your Mac becomes a server for a web site but only on your Mac; nowhere else. Web site developers love virtual hosting because it makes it easier to develop sites, add links, and so on.

You can do virtual hosting on your Mac a couple of different ways. One is complicated, requires a restart, and use of OS X’s terminal. It’s also free. The other is almost free and is purely point and click.

Guess which one I chose?

Here’s the problem. Ron asked me to help out on a couple of web sites he’s developing. My part requires that my Mac be a virtual host. In this case, I’ll use the domain name “katesdomain.com.”

To get katesdomain.com to show up in Safari or Firefox, which makes developing pages and links much easier, I have to set my Mac up as a virtual domain. That means typing katesdomain.com in the browser brings up the pages I’m developing, since the real site doesn’t exist yet.

It’s so easy a caveman could do it. Not. Do you honestly want to do this? Open terminal, navigate to the /etc directory, and edit the hosts file? This is what it looks like:

# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1 localhost
127.0.0.1   katesdomain.com
255.255.255.255 broadcasthost
::1         localhost

Edit it properly, and your Mac becomes a virtual host for katesdomain.com (or whatever name you choose). Then restart your Mac for the changes to take effect.

Not wanting to dink around in terminal any more than necessary, I asked Ron if there was an easier way. He said yes. It’s drop dead easy. Use a nifty application called VirtualHostX by Tyler Hall.

What VirtualHostX does is, indeed, drop dead easy. Tyler has an elegant instructional video of the steps. It’s about three clicks to make it work and you don’t have to restart your Mac.

Getting started is easy, too. Download VIrtualHostX, open and drag to your Applications folder, then double click to launch. The welcome screen gives you three steps. Create a backup of your Apache server configuration files. That’s one click. Turn on OS X’s virtual hosting and adjust the settings. That’s two clicks.

Tyler says there’s no third click. But there is. You have to close the Welcome window.

Now it’s time to create a virtual domain (remember, “virtual” means that the domain name only works on your Mac, in your browser). Click the Plus + button, type in the host name (domain name) you want to use. Then select the document root. That just means to select the folder on your Mac where the web site’s files will be.

Click Save Changes. Done. Now, open Safari or Firefox or whatever, and enter http://mydomainname.com (or, whatever domain you entered in VirtualHostX). If you created a few web pages and put them in a folder that VirtualHostX can find, that’s what you’ll see in your browser.

How cool is that? Very cool, considering VirtualHostX is a measly $7.00. Add as many virtual hosts (domain names) as you want, then develop web sites until your face is blue or the cows come home.

Why do this? Let’s say you want to make your own web site with your own domain using RapidWeaver, Dreamweaver, or Apple’s iWeb (but not use a .Mac account). Creating the site is easy these days, but viewing your results and checking your links before uploading the site to a server is more problematic.

Now it’s not. Whatever links you have will point accurately to your virtual host, the domain name you entered in VirtualHostX.

Can you do this for free? Yes. Just like you can build web pages and a web site for free using any of the free HTML editors. It’s slower, laborious, painful to learn. Ditto for setting up your Mac to host your virtual domain as a virtual host. Using VirtualHostX is a bargain.

What? Me? Follow?

Finally, have you visited our sponsor overlords? When you do our pre-schoolers can stop hanging around 7-11 begging for food. Did you know our daily reviews, news, updates, and nonsense come right to you when you Follow Mac360 on Twitter? They do. Now you know.

About Kate MacKenzie

I'm a 15 year Mac user from Brooklyn, New York. I used Windows Vista for a whole year and lived to tell about it. My personal site, PixoBebo, is all about Apple.


« Nextly What Makes You, And Keeps You, A Mac User?
Previously » Why We Look At Screenshots Of Mac OS X Leopard.

Mac360's Comment Policy: Keep your comment on topic, relevant, worthy, and funny. Or, pick any three. Be pleasant, helpful, and only use your real name. Comments are moderated and will not appear immediately.

Post Your Comment on Mac360 Cancel reply

*

*

CAPTCHA Image
Refresh Image

*

Recently on Mac360

  • Got Gmail? Get Gmail Into Your Mac’s Menubar For Instant Email Access And Alerts
  • How To Use Your Mac To Improve Your Typing Skills (or, teach you how to type)
  • Feed Your Mac A Video And Let A Magic App Convert It For iTunes Automatically
  • Learn To Draw On Your Mac With A Free Pixel Art Editor And Become A Pixel Pusher
  • How Tracking Your Diet With A Mac App Can Be Perfect Fun (or, not so much)

Links of Interest

  • Mac Recovery Software
  • Mac Video Games
  • Discount Drugs
  • Fisher Investments Videos
  • Best Buy Coupon Codes 2012
  • Rent iPads
  • Printing by PrintLIon.com
  • Norton Antivirus

What We Read

  • Bohemian Boomer
  • Daring Fireball
  • Feeling Lucky?
  • HawaiiBlogger
  • HawaiiCam
  • Hillaryzilla
  • Low End Mac
  • MacDailyNews
  • MacObserver
  • McSolo
  • NoodleMac
  • Obama's Diary
  • OnoDining
  • PixoBebo
  • Sarah's Diary
  • TeraTalks

Blasts from the Past

  • Got Gmail? Get Gmail Into Your Mac’s Menubar For Instant Email Access And Alerts » Not every Mac user has Gmail, but there's an app that makes Gmail more fun to use. Instead of hav...
  • How To Use Your Mac To Improve Your Typing Skills (or, teach you how to type) » Other than family and religion, typing is my life. I slave over a hot keyboard all day and county my...
  • Feed Your Mac A Video And Let A Magic App Convert It For iTunes Automatically » Chances are good you have plenty of videos. If not iMovie clips, then TV shows or movies you've down...

Follow Mac360 on Twitter

  • RT @9to5mac: Apple teases hardware-specific “special features” in upcoming OS X Mountain Lion builds http://t.co/gtFjqoQl #Mac #Apple about 20 mins ago
  • "6 Ways To Love Pixel Tools On Your Mac (1, it's cheap, and 2, you need it) - http://t.co/P4ibRcMP #Mac #Apple about 3 hours ago
  • "I Won't Buy An Apple Television Unless It Has This Magical Ingredient" - http://t.co/Xga2elG3 #Apple #Mac about 4 hours ago
  • "A Visual Way To Use Your Mac To Organize Files, Notes, And Your Brain" - http://t.co/8qPZkgxR #Mac #Apple about 6 hours ago

Comments to Mac360

  • Casey Stallworth on How To Use Your Mac To Turn Digital Photos Into Moku Hanga On The Cheap (hint: wood block printing)
  • Tom Hammer on How To Use Your Mac To Turn Digital Photos Into Moku Hanga On The Cheap (hint: wood block printing)
  • shawn on The Top 7 Macs Of All Time: Read It And Weep
  • Martin Grant on How To Use The Menubar To Navigate Your Mac’s Folders With A Click
  • robyn on How To Use The Menubar To Navigate Your Mac’s Folders With A Click

Return to top of page

Copyright © 2004 - 2012 Ron McElfresh, Honolulu, HI. All. Rights. Reserved.