Hi all, I just set up keystone with apache(2.2.15) and mod_wsgi. It runs perfectly. But when I tested my own application, it threw an exception of 404 Not Found, because it accessed the url: http://192.168.242.10:/35357/v2.0

And I curl to get keystone versions, the result is weird.

Here's what keystone+apache shows:
# curl -i -X GET http://192.168.242.10:35357/ -H "Content-Type:application/json"
HTTP/1.1 300 Multiple Choices
Date: Sat, 15 Nov 2014 09:18:14 GMT
Server: Apache/2.2.15 (Red Hat)
Vary: X-Auth-Token
Content-Length: 346
Connection: close
Content-Type: application/json

{"versions": {"values": [{"status": "stable", "updated": "2013-03-06T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v3+xml"}], "id": "v3.0", "links": [{"href": "http://localhost:35357/v3/";, "rel": "self"}]}]}}

Here's what keystone shows:
# curl -i -X GET http://192.242.10:35357/ -H "Content-Type:application/json"
HTTP/1.1 300 Multiple Choices
Vary: X-Auth-Token
Content-Type: application/json
Content-Length: 948
Date: Sat, 15 Nov 2014 09:21:18 GMT

{"versions": {"values": [{"status": "stable", "updated": "2013-03-06T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v3+xml"}], "id": "v3.0", "links": [{"href": "http://localhost:35357/v3/";, "rel": "self"}]}, {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://localhost:35357/v2.0/";, "rel": "self"}, {"href": "http://docs.openstack.org/api/openstack-identity-service/2.0/content/";, "type": "text/html", "rel": "describedby"}, {"href": "http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev-guide-2.0.pdf";, "type": "application/pdf", "rel": "describedby"}]}]}}

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to