@wilnzi wrote:
Hi,
Helps please.I’m trying to configure this architecture.
Frontend with https and redirection with http in backend.
But when i make it, i always have this error message :
Forbidden
You don’t have permission to access /new/new/ on this server.But this directory exits in the two backends servers and have 0777 as chmod.
My configuration :
frontend www-http
bind *:80
mode http
option httpclose
option forwardforredirect prefix https://www.example.com if { hdr(host) -i example.com } redirect prefix https://www.example.com if { hdr(host) -i www.example.com } acl exampleACL hdr_dom(host) -i example.com use_backend exampleBackend if exampleACL default_backend defaultBackendServer
frontend www-https
bind *:443 ssl crt /etc/ssl/certs/adwa/certificate.pem
mode http
option httpclose
option forwardforredirect prefix https://www.example.com if { hdr(host) -i example.com } acl exampleACL hdr_dom(host) -i example.com use_backend exampleBackend if exampleACL default_backend defaultBackendServer
backend defaultBackendServer
mode http
balance source
server SRV-WEB-1 192.168.2.13:80 check
server SRV-WEB-2 192.168.2.14:80 checkbackend exampleBackend
mode http
redirect scheme http code 301 if !{ ssl_fc }
balance source
acl no_redir url_beg /new/new/
reqirep ^([^\ :])\ /(.) \1\ /new/new/\2 if !no_redir
server SRV-WEB-1 192.168.2.13:80 check
server SRV-WEB-2 192.168.2.14:80 check
Posts: 3
Participants: 2