2 Apache Websites on Different Ports
7,949
After confirming port is open, try removing the port in your vhost server name, so it resembles:
<VirtualHost *:81>
ServerName mysitedomain.com
DocumentRoot "c:/wamp/www2/"
</VirtualHost>
You've already defined the port number to listen on. to access the domain being served out of your www2 directory, include the port number in the url
mysitedomain.com:81
Related videos on Youtube
Author by
mr3oh5
Updated on September 18, 2022Comments
-
mr3oh5 almost 2 years
I have a website(mysitedomain.com) which is running on http and https. Here is httpd.conf,
Listen 80 Listen 443 Listen 81 <VirtualHost *:80> ServerName mysitedomain.com DocumentRoot "c:/wamp/www/" </VirtualHost> <VirtualHost *:443> ServerName mysitedomain.com DocumentRoot "c:/wamp/www/" SSLEngine on SSLCertificateFile C:/SSL/S-WildCard.cer SSLCertificateKeyFile C:/SSL/S-WildCard.key SSLCACertificateFile C:/SSL/S_chain_cert.crt </VirtualHost>
Now I wanna to run another website on mysitedomain.com:81, so I added,
<VirtualHost *:81> ServerName mysitedomain.com:81 DocumentRoot "c:/wamp/www2/" </VirtualHost>
But this is not working. Anything I am missing?