AndyM
New Pleskian
Operating System: Ubuntu 12.04.5 LTS; Plesk Onyx v17.0.17 build1700161028.14
Apache, nginx, PHP-FPM 5.6.30, Fail2ban, Dovecot IMAP/POP3, QMail, SpamAssassin
After struggling for many hours and researching forum threads, I cannot figure out how to configure nginx to allow access to webmail (webmail.domain.com) through https://. Currently I get "502 Bad Gateway". It works fine with http://. I wish to switch to https for all domains. While I do have Let's Encrypt certs applied to 4 domains and a GeoTrust cert for 1 domain, I'm not worried about using the SSL certificate just yet. I just want to get https working first.
Apache, nginx, PHP-FPM, and Fail2ban are all running properly. I know the issue relates to "111: Connection refused". Here is what is showing in /var/log/nginx/error.log:
2017/05/15 19:45:50 [error] 6893#0: *36785 connect() failed (111: Connection refused) while connecting to upstream, client: ...., server: webmail.mydomain.com, request: "GET / HTTP/1.1", upstream: "https://[ip address]:7081/", host: "webmail.mydomain.com"
What I've tried already with no success:
- I have added my server's IP address to Trusted IP's
Websites show 502 Bad Gateway after enabling nginx on a server with Fail2ban
Issue - 502 Bad Gateway on webmail.domain.com
Apache is listening on port 7080, but this error is for 7081. Is this related to my problem?
tcp6 0 0 7080 * LISTEN 555/apache2
What other config files do you need for assistance? I will offer more as needed, but as a beginner I'm confused as to which config settings are important here. Thanks in advance.
Apache, nginx, PHP-FPM 5.6.30, Fail2ban, Dovecot IMAP/POP3, QMail, SpamAssassin
After struggling for many hours and researching forum threads, I cannot figure out how to configure nginx to allow access to webmail (webmail.domain.com) through https://. Currently I get "502 Bad Gateway". It works fine with http://. I wish to switch to https for all domains. While I do have Let's Encrypt certs applied to 4 domains and a GeoTrust cert for 1 domain, I'm not worried about using the SSL certificate just yet. I just want to get https working first.
Apache, nginx, PHP-FPM, and Fail2ban are all running properly. I know the issue relates to "111: Connection refused". Here is what is showing in /var/log/nginx/error.log:
2017/05/15 19:45:50 [error] 6893#0: *36785 connect() failed (111: Connection refused) while connecting to upstream, client: ...., server: webmail.mydomain.com, request: "GET / HTTP/1.1", upstream: "https://[ip address]:7081/", host: "webmail.mydomain.com"
What I've tried already with no success:
- I have added my server's IP address to Trusted IP's
Websites show 502 Bad Gateway after enabling nginx on a server with Fail2ban
Issue - 502 Bad Gateway on webmail.domain.com
Apache is listening on port 7080, but this error is for 7081. Is this related to my problem?
tcp6 0 0 7080 * LISTEN 555/apache2
What other config files do you need for assistance? I will offer more as needed, but as a beginner I'm confused as to which config settings are important here. Thanks in advance.
Last edited: