Virtual Hosts/Subdomains/SSL Apache2?

Discussion in 'Server Operation' started by Heeter, May 3, 2014.

  1. Heeter

    Heeter Member

    Hi all,

    I has been a few years since I have used Apache2 so sorry if this newbie.

    I am trying to use subdomains will https, and I am having a hard time figuring out the current Apache2 setup for this.

    I am using Ubuntu14.04 with Latest Apache2.

    I seem to be confused in the /etc/apache2/sites-available folder. I have 2 files: 000-default.conf and default-ssl.conf. Do I populate both files with virtualhosts subdomains (1 for *80 and 1 for *443?)

    I populate the 000-default.conf file and my subdomains work, even the applications in the /usr/share folder. I cannot get the same subdomains to work in the default-ssl.conf file with the default certs.

    Also, I noticed that the apache2 webroot folder is now /var/www/html, instead of the old /var/www, can I still put my subdomain webfolders in /var/www alongside the /html folder?

    I think that I have played with the settings so much trying to figure it out that I think that I corrupted something :(

    I am trying to achieve full time https with everything from my apache2 webserver, including the /usr/share applications (squirrelmail, phpmyadmin, etc....)


    Last edited: May 3, 2014

Share This Page