@Jabba wrote:
Hi everybody,
We have 1 HAproxy in front of 3 apache2 servers in different datacenters.
I deployed a new angular 1.6.x project on all apache2 server.But when i open the app, it redirect me on https://project.name/login on "Not Found The requested URL /login was not found on this server."
if i try to use the /login.html it's works!!
i tried to install the same angular project on a simple apache2 server without haproxy and it's works.
The problem is HAproxy configuration
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemondefaults
log global
option forwardfor
option http-server-close
option httplog
option dontlognull
timeout connect 9000frontend www-http
bind *:80
mode http
reqadd X-Forwarded-Proto:\ http
default_backend www-backend-httpbackend www-backend-http
mode http
cookie SERVERID insert indirect nocache
server s1 77.xxx.xxx.xxx:80 check cookie s1 maxconn 500
server s2 77.xxx.xxx.xxx:80 check cookie s2 maxconn 500
server s3 77.xxx.xxx.xxx:80 check cookie s3 maxconn 500frontend https-in
bind *:443
option tcplog
default_backend ssl-nodesbackend ssl-nodes
mode tcp
balance roundrobin
stick-table type ip size 10M expire 30m
stick on src
option ssl-hello-chk
server web01 77.xxx.xxx.xxx:443 check
server web02 77.xxx.xxx.xxx:443 check
server web03 77.xxx.xxx.xxx:443 checkAny idea how to solve this issue ?
Posts: 2
Participants: 2