Hi there! I’m new to Haproxy, I’m trying to achive this goal:
Redirect port 81 traffic to port 81 on my apache2 server
Redirect port 4043 traffic to port 443 on my apache2 server
Haproxy and Apache are running on same raspberry machine (192.168.0.100)
I copy my actual configuration here:
frontend http
mode http
log 127.0.0.1:514 local0 info
bind 192.168.0.100:81
bind 192.168.0.100:4043 ssl crt /etc/letsencrypt/live/mysite.com/mysite.com.pem
option forwardfor except 127.0.0.0/8
timeout connect 10s
timeout server 100s
default_backend http
backend http
mode http
log 127.0.0.1:514 local0 info
server s1 192.168.0.100:443 check maxconn 20
server s2 192.168.0.100:80 check maxconn 20
timeout connect 10s
timeout server 100s
My router (192.168.0.1) send 80 and 443 req. to 81 and 4043 on 192.168.0.100
Please help!
I always receive from browser:
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.
Apache/2.4.38 (Raspbian) Server at paulbonvi.com Port 80
1 post - 1 participant