[Mono-list] Using mod_mono with same server for different hosts
Abe Gillespie
abe.gillespie at gmail.com
Wed Nov 10 10:09:38 EST 2010
test2.cincura.net is a different virtual host. You need two
<VirtualHost> sections:
<VirtualHost *:80>
ServerName test.cincura.net
# Mono config ...
</VirtualHost>
<VirtualHost *:80>
ServerName test2.cincura.net
# Mono config ...
</VirtualHost>
Also, your MonoApplications directive needs to look like this (remove
the server name bits):
MonoApplications default "/:/www/cincura.net/test"
-Abe
On Tue, Nov 9, 2010 at 11:19 PM, Jiri Cincura <diskuze at cincura.net> wrote:
> Hi *,
>
> is it possible to use one mod-mono-server process to serve two
> application roots for two different hosts in one VirtualHost
> container? Something like:
>
> <VirtualHost *:80>
> ServerName test.cincura.net
> ServerAlias *.cincura.net
> VirtualDocumentRoot /www/%-2.0.%-1/%-3+
> AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd
> MonoServerPath default /mono/mono/bin/mod-mono-server4
> MonoApplications default "test.cincura.net:/:/www/cincura.net/test"
> MonoApplications default "test2.cincura.net:/:/www/cincura.net/test2"
> </VirtualHost>
>
> Because no matter what combination I tried, it always considered only
> the first one, ignoring the host (others were falling into the first).
> I'm probably overlooking something.
>
> Thanks JC
>
> --
> 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