My Standalone webApp runs behind a HAproxy configuration with SSL termination.
All non-secure connections are rerouted to https in HAproxy.
It all works very well but for one oddity; when I open the url on an iOS device, it opens as expected, redirected to https if I did not start with https://
But when I use the Add to Home Screen option on my safari browser, to make use of the full screen, and open that app, I am routed to the server’s default page rather than my web app.
Apache is not running.
Can anyone tell me why I get the default homepage instead of my web App when starting the Add to Home screen created app?
My HAproxy.config is as follows;
global
log 127.0.0.1 local0
maxconn 4096
tune.ssl.default-dh-param 2048
daemon
defaults
log global
mode http
option httplog
option dontlognull
retries 3
option redispatch
maxconn 2000
timeout connect 5000
timeout client 50000
timeout server 50000
frontend http-in
bind *:80
bind *:443 ssl crt //etc/haproxy/Certificates.pem
redirect scheme https if !{ ssl_fc }
acl is_myapp1 hdr_end(host) -i printervana.com
use_backend myapp1pool if is_myapp1
use_backend myapp1pool if { hdr(host) -i printervana.com }
default_backend myapp1pool
backend myapp1pool
option httpchk OPTIONS /
option forwardfor
option http-server-close
cookie serverid insert indirect nocache
server node1 localhost:8080 check cookie node1
server node2 localhost:8081 check cookie node2
server node3 localhost:8082 check cookie node3
listen haproxyapp_admin:9100 127.0.0.1:9100
mode http
stats uri /