Bad Request on access to nginx ssl enabled webmail

Created:

2017-02-20 05:38:14 UTC

Modified:

2017-08-08 13:45:58 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Bad Request on access to nginx ssl enabled webmail

Issue Symptoms

- Attempt to access via SSL to webmail.domain.tld led to the error


Bad Request

Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.

Conditions

- Server configured with nginx in front of Apache

Resolution

Make that SSL is enabled in the following section of /usr/local/psa/admin/conf/templates/default/nginxWebmail.php


includeTemplate('nginxWebmailPartial.php',
    array(
        'ssl' => true,
        'frontendPort' => $VAR->server->nginx->httpsPort,
        'backendPort' => $VAR->server->webserver->httpsPort,
    )) ?>

Have more questions? Submit a request
Please sign in to leave a comment.