[Mono-list] Using mod_mono with same server for different hosts

mbwl at manfbraun.de mbwl at manfbraun.de
Thu Nov 11 16:03:23 EST 2010


Hi !

I am really just new to linux and mono, so, don't consider me
too seriously ..., ;-)

If use use "MonoApplications default ...." you'll use a asp.net 1.1 version
!!
I am using debian lenny with mono 1.9


I am using - in a virtual host - the following, to ensure, that net 2.0 is
available:

<VirtualHost 192.168.26.254:80>
	ServerName thor
	MonoServerPath thor /usr/bin/mod-mono-server2
	AddMonoApplications thor "/:/var/www/test1"
</VirtualHost>
<VirtualHost 192.168.26.254:80>
	ServerName gate
	MonoServerPath gate /usr/bin/mod-mono-server2
	AddMonoApplications gate "/:/var/www/test2"
</VirtualHost>


Result:

$ps -Af | grep mono

www-data 22816     1  5 20:26 ?        00:00:07 /usr/bin/mono
/usr/lib/mono/2.0/mod-mono-server2.exe --filename /tmp/mod_mono_server_thor
--applications /:/var/www/test1 --nonstop

www-data 22816     1  5 20:26 ?        00:00:07 /usr/bin/mono
/usr/lib/mono/2.0/mod-mono-server2.exe --filename /tmp/mod_mono_server_gate
--applications /:/var/www/test2 --nonstop


Here you can see the "host-bits" .... I just do not know the details, but -
in opposite to you , I am using two different hosts and they distingish by
the "host-bits".


May be, it helps.

br++mabra


-----Original Message-----
From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Jiri Cincura
Sent: Wednesday, November 10, 2010 9:36 PM
To: Abe Gillespie
Cc: mono-list at lists.ximian.com
Subject: Re: [Mono-list] Using mod_mono with same server for different hosts

On Wed, Nov 10, 2010 at 16:09, Abe Gillespie <abe.gillespie at gmail.com>
wrote:
> test2.cincura.net is a different virtual host.  You need two

Yes, I was kind of hoping for similar work as mod_vhost_alias.

> <VirtualHost> sections:
>
> <VirtualHost *:80>
>  ServerName test.cincura.net
>  # Mono config ...
> </VirtualHost>
>
> <VirtualHost *:80>
>  ServerName test2.cincura.net
>  # Mono config ...
> </VirtualHost>

Is it possible to run just one (or just few specified in
MonoServerPath using same alias) mod-mono-server instance? Looks like,
it's not possible.

> Also, your MonoApplications directive needs to look like this (remove
> the server name bits):
>
> MonoApplications default "/:/www/cincura.net/test"

This brings me to question, what's the reason then to have support
there for hostnames?

-- 
Jiri {x2} Cincura (x2develop.com founder)
http://blog.cincura.net/ | http://www.ID3renamer.com
_______________________________________________
Mono-list maillist  -  Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list




More information about the Mono-list mailing list