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
<VirtualHost 127.0.0.1:81>
ServerAdmin temp@temp.com
DocumentRoot "c:/wwwroot/"
ServerName www.newsiteport81.com
</VirtualHost>
ServerAdmin temp@temp.com
DocumentRoot "c:/wwwroot/"
ServerName www.newsiteport81.com
</VirtualHost>
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"
# ADD PORT 81
Listen 81
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)
| Tweet |
| If you like what you see on the website and/or this post has helped you out in some way please consider donating to help keep me in beer vodka. The donations are made through Paypal, which accepts almost any credit card or eCheck. |