I have a website(apache web server, ubuntu 14.04) setup http://example.com and configured with ports 1996 and 1980.
These links works with http
http://example.com/myproject
http://example.com:1996/
http://example.com:1980/
And then I installed SSL certs and configured this server to use https
.
But these links doesn't work
https://example.com:1996
https://example.com:1980
How to configure https
in same domain for multiple ports?
default.conf:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerName example.com
SSLEngine on
SSLCertificateFile /home/ubuntu/ssl_cert/signed_cert.crt
SSLCertificateKeyFile /home/ubuntu/ssl_cert/server.key
</VirtualHost>
ports.conf:
Listen 80
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
http://example.com/myproject
still works. Issue is withhttps
and specific ports 1996, 1980