Cannot get Owncloud and apache running on a non-standard https port

I have a fully functional OC instance running on https (443) but recenly, I have a need to run OC on an non-standard https port. I chose 8090 and made the following changes but I do not have a functional OC setup at the moment:

/etc/httpd/conf/extra/httpd-ssl.conf
Listen 8090
...
<VirtualHost default:8090>
ServerName mydomainname.com:8090
...

/etc/httpd/conf/extra/owncloud.conf

<VirtualHost *:8090>
DocumentRoot /usr/share/webapps/owncloud
...

If I browse to https://mydomainname.com:8090 I get the expected "Access Forbidden!" message but if I browse to https://mydomainname.com/owncloud:8090 I get "Site can't be reached. mydomainname.com unexpectedly closed the connection." Please see the next post as I am a new user and cannot post more than 2 urls at this time.

If however I browse to https://mydomainname.com:8090/owncloud it redirects to https://mydomainname.com:8090/owncloud/index.php/login and I can login... is this right?

Server configuration
Operating system: Linux
Web server: Apache 2.4.23
Database: mariadb 10.1.16
PHP version: 7.0.9
ownCloud version (see ownCloud admin page): 9.1.0

Special configuration (external storage, external authentication, reverse proxy, server-side-encryption): none

Yes. It is always http://hostname:port/directory

1 Like

Just looked too odd to me. Thank you for confirming. I guess this was never an issue with the software but with the user :smiley: