Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1818

Configuring Nginx Server with HAProxy for HTTPS on Port 443 [closed]

$
0
0

I'm struggling to configure my Nginx server to work with HAProxy for HTTPS on port 443. Here's the configuration I'm using:

/etc/haproxy/haproxy.cfg:

frontend ptcs    bind *:443 ssl crt /root/docs/ssl    mode tcp    tcp-request inspect-delay 5s    tcp-request content accept if { req.ssl_hello_type 1 }    use_backend ptcs_backend if { req.ssl_sni -m end mydomain.com }backend ptcs_backend    mode tcp    server nginx 127.0.0.1:8900 SSL

I have my website running on port 8900 with HTTPS configured. However, when I try to access it through port 443 using HAProxy, it's not working. I'm not sure what I'm doing wrong.

Additionally, I have a version of my server running on port 8800 with HTTP, and I've also tried to configure it with HAProxy, but I'm not getting any results.

I'm feeling frustrated and stuck. Can someone please help me figure out what's going wrong and how to properly configure Nginx with HAProxy for HTTPS on port 443? Any assistance would be greatly appreciated. Thanks in advance!


Viewing all articles
Browse latest Browse all 1818

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>