trying to setup a access to a HTTPS NextCloud via subdomain

Discussion in 'Apache' started by Crashbash2020, Jun 16, 2017.

  1. #1
    Hi guys,

    I have been trying to set up a website for my main domain (mydomain.com) and then be able to access my nextcloud installation (which is on a different machine) via nextcloud.mydomain.com



    At the moment nextcloud.mydomain.com directs to the main site (with the security error as the certs i have are specific to the sub-domain)



    I can get HTTP traffic to redirect using virtualhosts, but i cant seem to get it to work for HTTPS. I feel like I am really close to resolving as i can access nextcloud securely from https:// nextcloud.mydomain.com:15443 (i have 15443 forwarded to 443 of the machine hosting nextcloud)



    this does work in practice but i would like to have it that I didn't have to type in the port if it is possible

    TIA for any help or suggestions
     
    Crashbash2020, Jun 16, 2017 IP