Discussion:
Accessing Apache2 URL without port number (change of port number) while using HTTPS
(too old to reply)
p***@gmail.com
2017-02-02 06:47:13 UTC
Permalink
Hi all experts,

I am a newbie to the linux (ubuntu) and also Apache2 Webserver. I have a serious question which I am sure probably have been answered and asked zillion times but I can't seem to find a way making it work so here we go. This is my summary below -

1) Running Zorin 12 based on 16.04
2) Setup Apache2 with SSL (HTTPS)
3) /usr/sin/apache2 -S shows apache2 are listening in 2 ports (443 in Default-ssl.conf and 12345 as listening port (do not wish to use default port)
3.1 - how do I change it to only port 12345 instead of 443 (I know I can change it in default-ssl.conf but then I can't access the URL
4) Forwarded port from 13345 to 443 based on the point 3 set up (everything is working)
5) It is set up to use Nextcloud server which is working as well
6) I can access URL as https://mydomainname.com:12345/nextcloud but now that expose the risks as I don't want people to see the open port number. I just can not find a way to change the setting to make it work --> https://mydomainname.com/nextcloud

If anyone can help me, it will be greatly appreciated!

BP
d***@gmail.com
2017-02-02 11:44:44 UTC
Permalink
Post by p***@gmail.com
Hi all experts,
I am a newbie to the linux (ubuntu) and also Apache2 Webserver. I have a serious question which I am sure probably have been answered and asked zillion times but I can't seem to find a way making it work so here we go. This is my summary below -
1) Running Zorin 12 based on 16.04
2) Setup Apache2 with SSL (HTTPS)
3) /usr/sin/apache2 -S shows apache2 are listening in 2 ports (443 in Default-ssl.conf and 12345 as listening port (do not wish to use default port)
3.1 - how do I change it to only port 12345 instead of 443 (I know I can change it in default-ssl.conf but then I can't access the URL
4) Forwarded port from 13345 to 443 based on the point 3 set up (everything is working)
5) It is set up to use Nextcloud server which is working as well
6) I can access URL as https://mydomainname.com:12345/nextcloud but now that expose the risks as I don't want people to see the open port number. I just can not find a way to change the setting to make it work --> https://mydomainname.com/nextcloud
If anyone can help me, it will be greatly appreciated!
BP
Exposed port?

https://whatever/ also "exposes" port is 443.

There is not "exposed" port anything in here, you just use one port or another, nothing to hide really. If you want to use a port, use it, just know browsers will always assume 443 if you don't specify any with https.
Loading...