Andy Jarrett // Code. Develop. Create.

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 [email protected]
   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
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)

I’m here, learning and working away. If you liked this content and want to keep me going, consider buying me a coffee. Your support keeps this site running and the coffee brewing! ☕️