Posted by: james | August 12, 2009

How to make locally any site working with domain name..

For ex. you want to make run your site with url blogfreehere.com

then you have all the source of this, then you need changes in two files as mentioned here..

c:\WINDOWS\system32\drivers\etc\hosts

add there 127.0.0.1   blogfreehere.local
// for making any site working in this manner use this syntax. and pass I.P address of that site.

C:\Program Files\Apache Software Foundation\Apache2.2\conf\extra\httpd-vhosts.conf

Add there structure
<VirtualHost *:80>
ServerName blogfreehere.local
DocumentRoot “D:/domains/blogfreehere.local”
</VirtualHost>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: