I am trying to setup multiple https websites via apache or nginx virtualhost but i noticed i have to append the port to the end of the IP address to view the https of websites that uses non default 443 ssl port
Is it possible to have multiple https websites on same server using different ports? If yes then how can one do this without needing to append the non default port at the end
What i have tried
# Ensure that Apache listens on port 80 and all ssl ports
Listen 80
Listen 443
Listen 543
# Listen for virtual host requests on all IP addresses
NameVirtualHost *:80
NameVirtualHost *:443
NameVirtualHost *:543
<VirtualHost 192.168.101.44:443>
DocumentRoot /www/example1
ServerName www.example1.com
# Other directives here
</VirtualHost>
<VirtualHost 192.168.101.54:543>
DocumentRoot /www/example2
ServerName www.example2.org
# Other directives here
</VirtualHost>
in that order and will be be able to reach the websites on https://www.example1.com and https://www.example2.org respectively
Is this possible? Apache? Nginx? I use both webservers so will like to know if it can work work with either or both. I can edit the question to be clearer if needed.
Thanks