phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


Virtual Host - Part 1: Make "www.yoursite.com" in your local computer

Tag: dns, virtual host   Category: Apache, Hosting
post: 09 Oct 2007 read: 1,179


Virtual Host Tutorial: Are you bore with "localhost" or "yourcomputername"? Wanna make "www.yoursite.com" in your local computer? Yeah, if you can make www.yourclient.com, presentation to your client will be more real. This tutorial only works in Windows environment. Follow this step:
1. Open C:\WINDOWS\system32\drivers\etc.
2. Open hosts with your notepad
3. Below 127.0.0.1 localhost,
write 127.0.0.1 www.yoursite.com, it will be like:
  
127.0.0.1       localhost
127.0.0.1	www.yoursite.com

Now, you can access your root folder with http://www.yoursite.com

It is simple, isn't it?


Series this article:
Virtual Host - Part 1: Make "www.yoursite.com" in your local computer
Virtual host - Part 2: "www.mysite.com" to special folder in your local

| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Chart: How to Build Cool Animation Real Time Chart
Joomla: Fast Road to Understand Component Programming
Email: Send Attachement Mail
mod_rewrite - Part 1: create your "fantasy" URL

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


615
posting