[Mono-dev] mod_mono vhost problem

Jonel Rienton jonel.rienton at mac.com
Fri Apr 14 11:13:31 EDT 2006

I have always use this configuration for my vhost and it works great
in my Solaris mod_mono installation

1) I have renamed mod_mono.conf to mod_mono_edison.conf (edison being
my hostname), you can always use a different name. I do this to avoid
my custom conf being overwritten if I upgrade my mod_mono package

2) include mod_mono_edison.conf in my httpd.conf (or your apache.conf)
Include /path/to/mod_mono_edison.conf

3) add MonoApplicationsConfigDir "/path/to/your/mod-mono-config-dir"
to mod_mono_edison.conf

4) Create <appname>.webapp inside the mod-mono-config-dir for every
vhost webapp:




5) In virtual-host.conf, (I assume you're familiar with setting up apache), add

<Directory "/path/to/example.com">
   SetHandler mono

I think this approach is more flexible since I can just add another
<appname>.webapp in my mod-mono-config-dir, add vhost entry and
restart apache and it will be picked up.


On 4/14/06, fedotenko <hugobendelin at hotmail.com> wrote:
> Ok so i have had this problem for a while without being able to fix it.
> Im using apache2, mod_mono 1.1.13, mono 1.1.13, xsp 1.1.13. Im trying to
> make it work right with virtual host.
> in my http.conf file i have
> LoadModule mono_module        modules/mod_mono.so
> MonoExecutablePath /usr/local/bin/mono
> And in my virtual host file, httpd-vhosts.conf i have
> <VirtualHost>
>  ServerName some1.mine.nu
>  ServerAlias  some1.mine.nu
>  ErrorLog /usr/local/apache2/logs/some1.error_log
>  CustomLog /usr/local/apache2/logs/some1.access_log combined
>  DocumentRoot /usr/local/apache2/htdocs/some1dir
>  AddMonoApplications test2
> "bandyboll.mine.nu:/:/usr/local/apache2/htdocs/some1dir"
>  MonoApplications test2 "some1.mine.nu:/:/usr/local/apache2/htdocs/some1dir"
>  MonoDocumentRootDir "/usr/local/apache2/htdocs/some1dir"
>    <Location />
>        MonoSetServerAlias test2
>        SetHandler mono
>     </Location>
> </VirtualHost>
> The problem i have is that in my error_log file this line keep turning up
> and filling it up:
> [Fri Apr 14 12:05:40 2006] [error] Not running mod-mono-server.exe because
> no MonoApplications, MonoApplicationsConfigFile or MonoApplicationConfigDir
> specified.
> Even when i specify a MonoApplicationsConfigFile it turns up. I dont know
> what and if i have done anything wong. Have i?
> --
> View this message in context: http://www.nabble.com/mod_mono-vhost-problem-t1448980.html#a3914600
> Sent from the Mono - Dev forum at Nabble.com.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

Jonel Rienton
Software Engineer, Unix Advocate

More information about the Mono-devel-list mailing list