How to make a local domain alias
By liviu - Posted on June 17th, 2009
Tagged:
Add in httpd.conf:
<VirtualHost 127.0.0.1>
ServerName mysitename.local
DocumentRoot E:\path\to\files
</VirtualHost>
Add in C:\WINDOWS\system32\drivers\etc\hosts :
127.0.0.1 mysitename.local
Restart Apache.
Now if you write mysitename.local in firefox it will take you to whatever is in E:\path\to\files.
Later edit:
You may also have to:
uncomment LoadModule rewrite_module modules/mod_rewrite.so
put in this line: NameVirtualHost 127.0.0.1
Bookmark/Search this post with:
- liviu's blog
- Login or register to post comments
Delicious
Digg
StumbleUpon
Propeller
Reddit
Magnoliacom
Newsvine
Furl
Facebook
Google
Yahoo
Technorati
Icerocket