[Mono-list] Virtual Hosts patch plans

Andrew Arnott AndrewArnott@byu.edu
Mon, 17 May 2004 17:11:54 -0600


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. =20

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. =20

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. =20

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]=20
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.
>=20
> It sounds like a patch is forthcoming later today.  Eagerly waiting...
>=20
> -----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
>=20
> Speaking out the side of my neck I ask why you couldnt use xml to
> "delimit" the hosts?
>=20
> 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. =20
> >=20
> > =20
> >=20
> > 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. =20
> >=20
> > =20
> >=20
> > 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.
> >=20
> > =20
> >=20
> > Andrew Arnott
> >=20
> >=20
>=20
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>=20
>=20
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list