[Mono-list] mod_mono and user dirs

Daniel Lopez daniel@rawbyte.com
Wed, 12 Mar 2003 02:58:43 -0800


> You could also make a HttpModule that checks for /~<user and translate's
> that into a correct path (that could be saved in web.config or other cfg
> file)

I can do that with Apache (and reuse the UserDir directive), but when do you
use that information? My guess was overriding PathTranslated in
HttpWorkerRequest, but it just does not feel right :)
As you suggested, I will look for examples of HttpModules that change the
physical path and see how they do it.

thanks!


> > -----Original Message-----
> > From: Daniel Lopez [mailto:daniel@rawbyte.com] 
> > Sent: Wednesday, March 12, 2003 11:14 AM
> > To: mono-list@ximian.com
> > Subject: [Mono-list] mod_mono and user dirs
> > 
> > 
> > 
> > Miguel suggested to allow individual users to be able to run their
> > own .aspx pages from their home directories.
> > In Apache, you can use the UserDir configuration directive to 
> > tell the web
> > server that when 
> > http://www.example.com/~userfoo/index.aspx is requested, it 
> > should return
> > /home/userfoo/public_html/index.aspx
> > 
> > But in ASP.NET, all requests go thru an ApplicationHost, that 
> > has a virtual
> > path and a physical path, which are different for each user. 
> > I have thought
> > of the following implementation possibilities:
> > - Detect that a user directory is being requested and create 
> > an application
> > host on the fly for that user
> > - Create an ApplicationHost that is shared by all users, but modify
> > HttpWorkerRequest so when the translated path is requested, 
> > it will return
> > the appropriate user directory with public_html inserted in 
> > the right place.
> > 
> > I am not entirely satisfied with these, specially because I 
> > dont know if b)
> > will have some unwanted side effects
> > Do you have any suggestions on the best way to approach this 
> > or a link to
> > relevant discussion/info?
> > I am posting this to some ASP.NET groups, but since they are 
> > windows centric
> > I dont think they will know what I am talking about :-)
> > 
> > Cheers
> > 
> > Daniel
> > _______________________________________________
> > Mono-list maillist  -  Mono-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> >