Project

General

Profile

Actions

Task #1181

closed

HTTP status server

Added by Junxiao Shi almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Tools
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
12.00 h

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

Related issues 1 (0 open1 closed)

Blocked by NFD - Task #1328: nfd-status: plain text status commandClosedAlex Afanasyev

Actions
Actions #1

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.

Actions #2

Updated by Junxiao Shi over 10 years ago

  • Target version changed from v0.1 to v0.2

Moved to Version 2 as decided in 20140314 conference call.

Actions #3

Updated by Chengyu Fan over 10 years ago

  • Assignee set to Chengyu Fan
Actions #4

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")?

Actions #5

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.

Actions #6

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?

Actions #7

Updated by Junxiao Shi over 10 years ago

You can use any kind of switch: command line switch, configuration file, environment, constant in code...

Actions #8

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
Actions

Also available in: Atom PDF