My installation of ISPconfig3 doesn't fully work anymore

Discussion in 'ISPConfig 3 Priority Support' started by axxies, May 8, 2020.

  1. axxies

    axxies Member

    I had to restore a backup since I screwed up with something, but now my the rewrite of "www.mydomain.com" to "mydomain.com" no longer works which means that I just land in some standard directory showing "Welcome to your new website". This also means that redirecting from "http://www.mydomain.com" => "https://mydomain.com" doesn't work either. All is set in the settings in ISPconfig, the cerificate is valid because when I go directly to "https://mydomain.com" it works as supposed to. It's a WP site.I have resynched ISPC3

    /var/log/apache2/other_vhosts_access.log doesn't give me any hints either.

    Any hints of what I can do?
     
    Last edited: May 8, 2020
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which Linux distribution do you use and is this an apache or Nginx web server?
     
  3. axxies

    axxies Member

    Hi,

    stretch + Apache2
     
  4. axxies

    axxies Member

    The backup I restored was /etc
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Have a look at the folder /etc/apache2/sites-available/ is the vhost file for this site there and is there maybe a copy of that vhost file with .err file extension?
     
  6. axxies

    axxies Member

    Nope, no file with an .err extension there.
     
  7. axxies

    axxies Member

    The vhost file is there
     
  8. axxies

    axxies Member

    There is nothing in the log either in
    /var/log/ispconfig/httpd/mydomain.com/error.log
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok. Then double-check that you have set auto subdomain to 'www' in the website settings of that site. This must be set to www, otherwise the requests must show up on another website.
     
  10. axxies

    axxies Member

    A few screenshots. The "interesting" thing is that the redirect from "www.mydomain.com" => "mydomain.com" in Edge, leads to a certificate error. This certificate goes to the first domain in the list of domains in ISPC3.

    I have tried to remove the certificate an re-create it from within ISPC3. Same results.
     

    Attached Files:

  11. axxies

    axxies Member

    The way I see it, if the redirect works, then this wont' be a problem. Still weird though that the certificate doesn't cover the sub domain www
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    That's to be expected when the vhost is not responsible for the subdomain. As you can see in your screenshot, you did not set auto subdomain to www as it is required for the redirect you are doing, see post #9.

    Not weird at all, you configured it to not include www subdomain by setting auto subdomain to none.
     
    axxies likes this.
  13. axxies

    axxies Member

    Ah, I get it! Thank you! I thought that the redirect would handle that.
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    Just as short explanation: The redirect handles that an incoming request that reaches the vhost gets rewritten. But by disabling the subdomain, these requests don't reach the vhost anymore.
     
    axxies likes this.

Share This Page