Task #1181
closedHTTP status server
100%
Description
Develop a tool that retrieves NFD status and republishes over HTTP.
This tool is an external process that talks to NFD using ControlCommand.
It could be either a CGI script invoked by a traditional HTTP server such as nginx, or a standalone HTTP application server such as Node.js or Python HTTPServer.
These information should be published:
- forwarding statistics
- face list and face counters
- FIB entries
Updated by Junxiao Shi almost 11 years ago
From #1081:
It would be helpful to respond to "GET /robots.txt" requests with:
Content-Type: text/plain
User-Agent: *
Disallow: /
This response forbids HTTP robots such as Googlebot to index NFD status page, which is desirable in some environments.
There should be a configuration option to enable this robots.txt response.
Updated by Junxiao Shi almost 11 years ago
- Target version changed from v0.1 to v0.2
Moved to Version 2 as decided in 20140314 conference call.
Updated by Chengyu Fan over 10 years ago
- Status changed from New to In Progress
Sorry I don't get why we need to handle the issue like "GET /robots.txt"?
why not let the server only respond the "GET /" request, and ignore others (or respond "404 Not Found")?
Updated by Junxiao Shi over 10 years ago
I don't want Googlebot to find and index my forwarder. Responding 404 to /robots.txt indicates it's okay to index the site.
If you are making a CGI script, robots.txt is handled by web server. If you are making a standalone web server, robots.txt should be answered as suggested.
Updated by Chengyu Fan over 10 years ago
I'd prefer a standalone web server using Python.
Another question is the require for a configuration option:
"There should be a configuration option to enable this robots.txt response."
What kind of configuration option are you talking about?
Updated by Junxiao Shi over 10 years ago
You can use any kind of switch: command line switch, configuration file, environment, constant in code...
Updated by Junxiao Shi over 10 years ago
- Status changed from In Progress to Closed
- Target version changed from v0.2 to v0.1
- % Done changed from 0 to 100