[Mono-list] Rewriting path with an HttpModule
Sat, 22 Mar 2003 11:50:24 -0800
> > In a similar way to how Apache mod_userdir does.
> > That requires implementing RewritePath and changing the PhysicalFilePath
> > returned, small changes that I already commited.
> > codebase, can you have a look before I apply?
> The path passed to rewrite path must be relative to the application host
> base path (--root in server.exe), so UserDir.cs is wrong because it
> passes the full path to the file instead of a virtual path. (MS says
> "c:\xxx" is a physical path") (heh, and they say that they throw an
> ArgumentNullException when the path is null but i get a
> NullReferenceException :).
Oh, so my mistake was to think Path refered here to a physical path, it is
actually a URL path. MS documentation is so ambiguous.
This simplifies everything, because I do not need to worry about the other
Map() functions in other classes, they will do the right thing.
> After fixing RewritePath, i'll modify it and send it back to you.
> Btw, I've found an interesing link (god bless google!):
Good link, thanks!