apache, with virtualhosts on multiple ports

Here mainly because i forget this. If you want to set up a new VirtualHost ,on your Apache Server,on new port i.e. 81 just add this to your HTTPD.conf file
   ServerAdmin temp@temp.com
   DocumentRoot "c:/wwwroot/"
   ServerName www.newsiteport81.com
but before you restart the services don't forget to make Apache Listen on that port as well by adding the following under "LISTEN 80"
Listen 81
Without this Apache will not be listening on PORT 81, and you'll be sitting in front of your box wondering what you've missed - you'll realise - then you'll blog about it ;o)
comments powered by Disqus