[Mono-list] mod_mono and user dirs

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


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