mercredi 10 février 2016

Getting 404 error ...Not able to see page .......page not found 404

My app is running as bosh vm and have opened a route in haproxy. I am trying to access http://ift.tt/1o2dSdG. I am getting

curl http://ift.tt/1o2dSdG

> Host: myappexample.com
> Accept: */*
>
< HTTP/1.1 404 Not Found

when I use private url i am getting 303 

curl admin.devtest3.io

> GET / HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1  zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: admin.devtest3.io
> Accept: */*
>
< HTTP/1.1 303 See Other

haproxy.config

frontend http-in
    acl adminui path_beg /adminui

frontend https-in
    acl adminui path_beg /adminui

backend bk_adminui
mode http
http-request set-header Host admin.devtest3.io
reqirep ^([^\ :]*)\ /(.*)$       \1\ /\2
balance roundrobin
    server node0 0.router.ccc-bosh-net.cf-devtest3.microbosh:80 check inter 1000

    server node1 1.router.ccc-bosh-net.cf-devtest3.microbosh:80 check inter 1000

It seems set-header Host admin.devtest3.io is not working.Please guide me what is wrong here.




Aucun commentaire:

Enregistrer un commentaire