how to reach keystone rest api through httpd
Hi,
I want to use keystone in HTTPD, configuration is almost done. on localhost:80/keystone/admin and main answer me an xml document. But I don't know, how to use its REST API. I must admit I'm not an apache expert, and maybe what I ask is not neccesarily a keystone matter, but when I'm using keystone through Apache how can I use its REST API like http://localhost:5000/v3/auth/tokens (http://localhost:5000/v3/auth/tokens?) I reckon Apache understands it as path and it is why I get 404.
Is there any apache config I didn't set or I call keystone wrong?
Regards,
Gergő
curl -i http://localhost:5000/v3/auth/token -X POST -H "Content-Type: application/json" -d '
{ "auth": {
"identity": {
"methods": ["password"],
"password": {
"user": {
"name": "admin",
"domain": { "id": "default" },
"password": "secrete"
}
}
}
}
}'
HTTP/1.1 404 Not Found
Date: Thu, 10 Jul 2014 12:43:10 GMT
Server: Apache/2.2.22 (Ubuntu)
Vary: Accept-Encoding
Content-Length: 288
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /v3/auth/token was not found on this server.</p>
<hr>
<address>Apache/2.2.22 (Ubuntu) Server at localhost Port 5000</address>
</body></html>