Page not found while accessing cloud foundry admin ui from browser


V Kumar
 

My admin ui is running as bosh vm and have opened a route in haproxy. I am trying to access https://myappexample.com/adminui from browser. I am getting** page not found error** in browser.

I tried curl command

curl https://myappexample.com/adminui

curl -vvv -k https://myappexample.com/adminui
* Hostname was NOT found in DNS cache
* Trying 135.107.34.123...
* Connected to myappexample.com (135.107.34.123) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using ECDHE-RSA-AES256-GCM-SHA384
* Server certificate:
* subject: C=US; ST=California; L=Sanfrancisco Bay Area; O=Anonymous; OU=Anonymous; CN=myfall-ubuntu-ds.com; emailAddress=Anonymous
* start date: 2015-10-22 21:15:06 GMT
* expire date: 2016-10-21 21:15:06 GMT
* issuer: C=US; ST=California; L=Sanfrancisco Bay Area; O=Anonymous; OU=Anonymous; CN=myfall-ubuntu-ds.com; emailAddress=Anonymous
* SSL certificate verify result: self signed certificate (18), continuing anyway.
GET /adminui HTTP/1.1
User-Agent: curl/7.35.0
Host: myappexample.com
Accept: */*
< HTTP/1.1 404 Not Found
< Content-Length: 14
< Content-Type: text/html;charset=utf-8
< Date: Wed, 10 Feb 2016 13:47:04 GMT
* Server WEBrick/1.3.1 (Ruby/1.9.3/2013-06-27) OpenSSL/1.0.1f is not blacklisted
< Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-06-27) OpenSSL/1.0.1f
< Set-Cookie: rack.session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiJFYzYxOTRhN2VkMjkwMDgzZmY5NmQz%0AMGQzNDkxNDIxNTBhNTMxMmM0ZDE0OTk5YTMxMjRiZWY2MGExNzBhN2I3OUki%0ACWNzcmYGOwBGIiU3ZDlkN2VkMjY5Y2U0ZmUyNDJiNTRjODY4MDQ1OWRjZEki%0ADXRyYWNraW5nBjsARnsHSSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZWYxOGFl%0AZDI4NGFiNzVlNzBhMDFiMjJlMzFiOTBlN2JhNDQ3MGM3NkkiGUhUVFBfQUND%0ARVBUX0xBTkdVQUdFBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOQ%3D%3D%0A--5b3c97fc3a3f250671f5e9e2ee7ad323844ba65e; path=/; HttpOnly
< X-Cf-Requestid: 51e8f91e-f190-4731-6f5e-c370e2546c36
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-Xss-Protection: 1; mode=block
<
* Connection #0 to host myappexample.com left intact

when I use private url i am getting 303

curl admin.devtest3.io

curl -vvv -k http://api.devtest3.io
* Rebuilt URL to: http://api.devtest3.io/
* Hostname was NOT found in DNS cache
* Trying 10.20.0.25...
* Connected to api.devtest3.io (10.20.0.25) port 80 (#0)
GET / HTTP/1.1
User-Agent: curl/7.35.0
Host: api.devtest3.io
Accept: */*
< HTTP/1.1 404 Not Found
< Content-Length: 86
< Content-Type: application/json;charset=utf-8
< Date: Wed, 10 Feb 2016 13:46:15 GMT
* Server nginx is not blacklisted
< Server: nginx
< X-Cascade: pass
< X-Cf-Requestid: 5d3b6034-6044-42d2-401a-5c330d735d00
< X-Content-Type-Options: nosniff
< X-Vcap-Request-Id: cebf122d-678d-4e24-7ad5-8c7db0068b16::cf1f1b90-5eb6-4586-b0aa-7fd8a05e04a7
<
{
"code": 10000,
"description": "Unknown request",
"error_code": "CF-NotFound"
* Connection #0 to host api.devtest3.io left intact

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`

I ran bosh run errand register_admin_ui successfully.

Reference
https://github.com/cloudfoundry-community/admin-ui-boshrelease

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.