1

So rather than http://localhost, is it possible to set up multiple virtual hosts on the same local computer so I can access:

http://home/ http://office/ http://docs/

for different websites that are hosted at different document root directories in my computer?

datasn.io
  • 12,564
  • 28
  • 113
  • 154
  • If you are in a mood for games - edit the "hosts" file ( add 127.0.0.1 home, 127.0.0.1 docs ... etc). Then if you are using php based on $_SERVER[SERVER_NAME] load the scripts\sites. Good question ;) – Bakudan Mar 22 '11 at 02:30

1 Answers1

1

Install multiple virtual hosts

Check this page for a useful information on what you want to know.

Sujit Agarwal
  • 12,348
  • 11
  • 48
  • 79