Https internet access from alternate port?

I have a home server. I already use ports 8080 & 8443 for my server’s start page.
I also have my server setup to be accessed from the internet & to redirect to https when anyone types in the domain name.

So for example if my server internet address ( using port 8080 automatically redirects to using port 8443.

Using info found elsewhere in the forums I edited /etc/default/openhab2 and enabled ports 8081 & 8444.

I also added a VirtualHost *:81, and *:444 to my /etc/apache2/sites-enabled/ file.

I restarted apache2 server & openhab2 but I cannot access my OpenHAB2 site using:

I also can’t access the OpenHAB2 site using ports 8080 or 8443. I know this is because I already have an application using this port to serve my server’s index page.

I can only access OpenHAB2 using local ip (


My desired configuration can’t be that out of the ordinary? I understand the security concerns regarding accessing OpenHAB2 over the internet, but I want to do it.

So, I need to access OpenHAB2 over the internet using an alternative port. I’d especially like to access it via https.

I just can’t seem to make this config work. Has anyone gotten this to work? I have other apps on my server so I don’t want to use OpenHAB2 as a stand alone server like OpenHABian. I just want to install and use OpenHAB2 as I would any other program on my server.

I would ask a why question but I won’t. From what I see here this is an Apache question as it appears that is what you are using it as your reverse proxy. If ip:8081 works then seems like openHAB is doing its job.

The why question pertained to why access from the internet like this. There would by default be no security.

1 Like

I am not sure you do.
The open port will be found bit a scanning bot within minutes and attacked shortly after.
There is NO security on that port.
Good luck