Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up my local server to mimic a top-level domain like www.mydevsite.com

Tags:

windows

wamp

How do I setup a local server so that if you visit something like www.my-dev-branch.com on the local machine it points to the files on your system, e.g. 'c:/wamp/www/www.my-dev-copy.com'

Note, I'm on Windows 7 using WAMP

like image 884
Julian Avatar asked Jan 19 '26 12:01

Julian


1 Answers

Usually this kind of thing is done manipulating the hosts file in C:\WINDOWS\SYSTEM32\DRIVERS\ETC

You add a line like this

127.0.0.1       www.my-dev-branch.com 

Remember that in Win7 this path is hidden from normal view.
You need to type the path directly in the address bar of an explorer window.
Of course Administrator Rights are required.

like image 137
Steve Avatar answered Jan 22 '26 02:01

Steve



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!