Articles in this section

Websites on server do not display SSL and redirect to webmail page: vhost configuration files for the websites are missing

Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

  • Opening the domain of the website in your browser results in a NET::ERR_CERT_AUTHORITY_INVALID or MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT error
  • Continuing past the missing SSL warning message leads you to the webmail login interface page for Roundcube or Horde.
  • Running plesk repair web -n returns the following error output:

    # root @ server in ~: plesk repair web -n
    ...
    Checking web server configuration. Please wait
    File not found: example.com.conf
    File not found: example.net.conf
    File not found: example.org.conf ........................... [ERROR]

  • The vhost.conf, vhost_nginx.conf and vhost_ssl.conf files are missing from the /var/www/vhosts/system/example.com/conf directory of the affected websites

Cause

Missing Virtual Host configuration files in the /var/www/vhosts/system/example.com/conf directory for each affected website combined with additional server-wide web server misconfiguration.

Resolution

To resolve the issue, you should follow these steps:

1. Log into your server via SSH as the root user

2. Recreate all necessary virtual host and web server configuration files by running this command:

# plesk repair web

3. Review the output and confirm by inputting y (for yes) when necessary

The command above recreates all of the necessary web server configuration files for all domains and web services.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.