[Mono-list] Virtual Hosts patch plans

Shawn Vose svose@programmerforrent.com
Tue, 18 May 2004 07:15:54 -0400


Right now I need to get mon_mono working. I just got the source
yesterday and started to install it but it drops out with a service
unavailable. Also xsp drops with an unhandled exception. I need to
review the list archives because I know this is not a new problem.
Once I have that accomplished I will be ready to give a stab at it.




On Mon, 2004-05-17 at 19:11, Andrew Arnott wrote:
> I'd welcome any help you can give.  I am envisioning something like
> this:
> 
> MonoDocumentRootDir
> "virtualhostname1:port1,physicaldir1;virtualhost2:port2,physicaldir2;...
> "
> 
> Where ":portx" is optional, and the whole virtualhostname:port combo
> matches some virtualhost configuration in the httpd.conf file.  
> 
> Similarly with the next parameter:
> 
> MonoApplications "virtualhostname1:port1/virtualdir1,physicaldir1;..."
> 
> This way, one pair of parameters to mod-mono-server.exe provides all the
> info necessary for it to handle all requests, whatever virtual host it
> comes from.  
> 
> But then, here's my question that I haven't researched yet: why can't
> mod_mono just look up the "Alias" and "VirtualHost" settings within the
> configuration file rather than being hand-fed this information and
> having redundant configuration settings in our httpd.conf file?  I don't
> know enough about Apache MODs to know.  
> 
> Lastly, before we work on this patch, let's see what patch was mentioned
> earlier today.  I'm downloading CVS now to see if it's available.
> 
> Andrew Arnott
> -----Original Message-----
> From: Shawn Vose [mailto:svose@programmerforrent.com] 
> Sent: Monday, May 17, 2004 3:33 PM
> To: Andrew Arnott
> Cc: mono
> Subject: RE: [Mono-list] Virtual Hosts patch plans
> 
> Where would the delimited list of host's exist? Would it exist inside
> the httpd.conf file?
> I am asking out of ignorance as I am trying to think of a way I might be
> able to help.
> 
> Regards,
> Shawn
> 
> On Mon, 2004-05-17 at 17:19, Andrew Arnott wrote:
> > That would be an elegant solution, but it seems it would be more work.
> > The emphasis on this patch is not elegance, since elegance would mean
> > rewriting more than I understand how to at the moment.
> > 
> > It sounds like a patch is forthcoming later today.  Eagerly waiting...
> > 
> > -----Original Message-----
> > From: mono-list-admin@lists.ximian.com
> > [mailto:mono-list-admin@lists.ximian.com] On Behalf Of Shawn Vose
> > Sent: Monday, May 17, 2004 2:28 PM
> > To: mono
> > Subject: Re: [Mono-list] Virtual Hosts patch plans
> > 
> > Speaking out the side of my neck I ask why you couldnt use xml to
> > "delimit" the hosts?
> > 
> > On Mon, 2004-05-17 at 15:11, Andrew Arnott wrote:
> > > I plan to write a patch for mod_mono to enable support for multiple
> > > virtual hosts in Apache by extending the use of the
> > > MonoDocumentRootDir and MonoApplications parameters.  Essentially in
> > > addition to comma delimitation, I will use another character to
> > > delimit web sites and these will be top level keywords.  That is,
> they
> > > will not be specified in the VirtualHost tag area.  
> > > 
> > >  
> > > 
> > > I do not believe this is the best solution to the problem, but until
> a
> > > rewrite happens on mod_mono, or someone says they have a better
> design
> > > idea that they are willing to work for, this seems like the fastest
> > > way to get the job done.  
> > > 
> > >  
> > > 
> > > Has anyone already begun work on this?  Is there any interest if I
> > > create one?  I'll probably post it on the list either way once it's
> > > done.
> > > 
> > >  
> > > 
> > > Andrew Arnott
> > > 
> > > 
> > 
> > _______________________________________________
> > Mono-list maillist  -  Mono-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> > 
> > 
> > _______________________________________________
> > Mono-list maillist  -  Mono-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list