PLC Programming HandbooksPopular ArticlesNavigationUser login |
One Server, Multiple Sites - Easy Web DevelopmentHere's a nice tip from WebmasterWorld if you have multiple sites you manage as a webmaster and want to do local development. This is an example to set up two websites so I can access them at http://mytestsite1 and http://mytestsite2. You can name them anything you want. Note also that you can put any extension on the end that tickles your fancy. Some like to have it as .loc to indicate it's a local copy. I'm using the Apache web server on WindowsXP so I add this at the bottom of the http.conf file under the VirtualHost section:
Just one more thing for those on Windows. Open the file at C:\WINDOWS\system32\drivers\etc\hosts (there is no extension so just use Notepad) and put this at the end.
Now restart Apache and you'll have your new test sites at http://mytestsite1 and http://mytestsite2. ( categories: )
|