OK, you're gonna have to be a little more explicit here because my C is
pretty rusty :-)

Is there one certain place where I can get a hold of all URL's that are
printed on a page? That doesn't seem to be the case, since there are many
places in http.c where URL's are located (any <A> tag, the CSS pointer,
etc.)

When you say "test for the base url and advance the pointer", you seem to be
talking about stripping off the base url, instead of adding it on.. am I
missing something?

toby

----- Original Message -----
From: "Burton M. Strauss III" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, September 29, 2002 3:31 PM
Subject: RE: [Ntop] Base URL location


> 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
>
> ----------------------------------------------
> Filtered by despammed.com.  Tracer: OAA211121033328058
> Need cheap U.S. dialup but want to keep despamming your mail?  Check out
U.S. national dialup
> access from $13.95 with Despammed filtration at http://www.myguard.net
>
>

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop

Reply via email to