Website defaulting to first alphabetical...

Discussion in 'General' started by Stokesy, Jun 4, 2020.

  1. Stokesy

    Stokesy Member

    Hi
    I have had the same problem a few times and I'm wondering if anyone can explain...
    I have added a new site but instead of seeing the site when I enter the URl in browser, I see the first site alphabetically from sites-enabled rather than the content of the site that I want...
    I can't figure it out and it has happened before... :-(
    BTW this site has previously been an alias for another site just to make things more complicated - I deleted the alias and then created the new site...
     
  2. elmacus

    elmacus Active Member

    Do you access it via HTTPS ? If you do and lack active SSL, then its by Apache design to show the first site.
    In that case, rename the site you want to start when SSL missing to: 000-xxx.-
    Myself i set webmail to first site:
    Code:
    a2dissite default-ssl.conf
    mv /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-available/000-default-ssl.conf
    a2ensite 000-default-ssl.conf
    apache2ctl configtest
    service apache2 reload
    service apache2 status
     
  3. Stokesy

    Stokesy Member

    spot on - the LetsEncrypt certificate had not been generated. Thanks elmacus
     

Share This Page