>Hi,
>in the FAQ to Ntop, I have found written:
>"... remember that a file overrides ntop's internal page generation, so you
>can also use this facility to override ANY of ntop's pages and return a
customized page"
>
>which is it the file that generation the internal page?


ntop's web server takes a request - any request - and first searches for
that file in it's html directory.  If the file isn't found, ntop checks the
request for an internally generated page name. To see the set of internally
generated pages, look in globals-define.h for the ".html" constants - that's
most of them, but there are also a few 'pages' where the names are still
hard coded in http.c.

For example, the most common page is the basic frame set,
http://localhost:3000/index.html

ntop has a file, index.html which is what's usually served up.

If you delete that file, ntop still has a version (albeit quite different)
which is served up in response.

Try it - just rename the index.html file - and you'll see.


If you wanted to customize the file, you just edit it and drop the
customized version back into html directory.  But for language specific
customization, look at the i18n entries - that way you can return English
pages to people who request English and Italian pages to those who want
them.


-----Burton

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to