nginx+apache webmail SSL problem

activate

Verified User
Joined
May 30, 2017
Messages
38
Location
Terneuzen, Netherlands
I have latest DA with latest custombuild installed on multiple servers. Two of those servers I have configured to run nginx+apache. This works very well for the websites but I am running into an issue with webmail when trying to reach https://webmail.domain.tld

I followed the instructions for adding webmail to both apache and nginx. However every time I try to access it I get a message (I believe from httpd) :

400 Bad Request

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.

Have I made an error in the templates perhaps? The issue is not popping up on https://domain.tld.

Kind regards,

Eelco Bosselaar

Edit: Still hoping for a reply...
 
Last edited:
Hello,

Reason: You're speaking plain HTTP to an SSL-enabled server port.


You should correct HTTPS templates to be SSL-based.
 
Hi zEitEr,

I have used the following files in /usr/local/directadmin/data/templates/custom :

  • nginx_server.conf
  • nginx_server_secure.conf
  • virtual_host2.conf
  • virtual_host2_secure.conf

I have only modified what is needed for webmail. I'll go over it again just to be sure I have done it correctly according to DA instructions.

Thanks for your repsonse.
 
The files virtual_host2_secure.conf and nginx_server_secure.conf are used for HTTPS, so you need to add instructions to include a SSL cert.
 
Back
Top