Sure... write the code, test it and send it as a patch. Off the cuff, it would probably be easiest in http.c to test for the base url first and advance the pointer, that way the if test wouldn't need to be altered. You would need to look at the imbeded page generators too, I think the external ones would work without any further mods. I think that way you could keep the admin stuff unaltered - i.e. EVERYTHING is relative to --baseurl
-----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Toby Johnson Sent: Sunday, September 29, 2002 1:45 PM To: [EMAIL PROTECTED] Subject: [Ntop] Base URL location I am currently proxying requests to the ntop web server through Apache (i.e. any requests to "my.domain.com/ntop" will get forwarded to "localhost:3000" or wherever I have ntop). I cannot, due to security reasons, allow access to ntop directly from the outside; it must be proxied through Apache to use existing security mechanisms. This is a problem because many of the URL's that ntop uses assume they are absolute. It would be nice to have a command-line option that specifies an absolute path that should be prefixed to all other absolute paths. For example, if I specify "--baseurl /ntop", then a URL such as "/modifyURL?2showU" becomes "/ntop/modifyURL?2showU". Is this feasible? Toby Johnson _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://lists.ntop.org/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://lists.ntop.org/mailman/listinfo/ntop
