[Mono-devel-list] Jaroslaw: Trouble with vhosts.patch

Andrew Arnott AndrewArnott at byu.edu
Tue May 18 14:22:29 EDT 2004

I noticed Jaroslaw's patch for vhosts adds mention of two new Apache
keywords "MonoApplicationsConfigDir" and "MonoApplicationsConfigFile".
Yet mod_mono does not yet do anything with them, and Apache spits out
the configuration file that has them.  

This is a patch to mod_mono.c to get Apache to accept those keywords,
and to get mod_mono to pass those parameters on to mod-mono-server.exe.


-----Original Message-----
From: Jaroslaw Kowalski [mailto:jaak at zd.com.pl] 
Sent: Tuesday, May 18, 2004 11:43 AM
To: Andrew Arnott; mono-devel-list at lists.ximian.com
Subject: Re: [Mono-devel-list] Jaroslaw: Trouble with vhosts.patch

Port-based virtual hosting is not functional in my patch. I concentrated
name-based vhosts. There are places marked as TODO which have to be
completed to get this functionality.

BTW. I always add "apache" user to the same group as the user that runs
mod-mono-server. This way I don't need to play with permissions.


----- Original Message ----- 
From: "Andrew Arnott" <AndrewArnott at byu.edu>
To: <mono-devel-list at lists.ximian.com>
Sent: Tuesday, May 18, 2004 6:17 PM
Subject: [Mono-devel-list] Jaroslaw: Trouble with vhosts.patch

> Oops.  I posted this on the mono-list, addressed to Gonzalo.  Actually
> guess Jaroslaw is the author of the patch mentioned.  But anyone is
> invited to answer! :)
> Jaroslaw:
> I applied your vhosts.patch file from ten days ago to the latest CVS
> XSP this morning, and rebuilt XSP.  I followed your set up
> and now I get "Service Temporarily Unavailable" when requesting an
> page from my virtual host.
> Here is my configuration: (and below are the specific errors from the
> logs)
> 1. httpd.conf snippet
> <VirtualHost *:8081>
> DocumentRoot /home/Andrew/localweb/gerontology
> ServerName localhost
> SetHandler mono
> DirectoryIndex default.aspx
> MonoDocumentRootDir "/home/Andrew/localweb/gerontology"
> MonoApplications "/:/home/Andrew/localweb/gerontology"
> Alias /common "/home/Andrew/localweb/common"
> </VirtualHost>
> <VirtualHost *:8082>
> DocumentRoot /home/Andrew/localweb/mfhd
> ServerName localhost
> SetHandler mono
> DirectoryIndex default.aspx
> MonoDocumentRootDir "/home/Andrew/localweb/mfhd"
> MonoApplications "/:/home/Andrew/localweb/mfhd"
> Alias /common "/home/Andrew/localweb/common"
> </VirtualHost>
> 2. gerontology.webapp contents
> <web-application>
> <name>Root</name>
> <vpath>/</vpath>
> <path>/home/Andrew/localweb/gerontology</path>
> <vhost>localhost</vhost>
> <vport>8081</vhost>
> </web-application>
> 3. mfhd.webapp contents
> <web-application>
> <name>Root</name>
> <vpath>/</vpath>
> <path>/home/Andrew/localweb/mfhd</path>
> <vhost>localhost</vhost>
> <vport>8082</vhost>
> </web-application>
> 1. I started Apache 2.0.49 first.
> 2. I launched mod-mono-server.exe with the switches you outline in
> email.  Its verbose output clearly shows that the .webapp files were
> read in and interpreted correctly.
> 3. I switch to a browser and try to navigate to either virtual host,
> I get the "Service Temporarily Unavailable" error.
> 4. The Apache logs/error_log file has:
> [error] mod_mono: connect error (Permission denied). File:
> /tmp/mod_mono_server
> 5. I tried each of these in various orders, and none helped:
> chmod 777 /tmp/mod_mono_server
> rm /tmp/mod_mono_server
> touch /tmp/mod_mono_server
> chown root.root /tmp/mod_mono_server    # root is running Apache
> Any ideas as to why this isn't working?  Thanks.
> Andrew Arnott
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mod_mono-vhosts-switches.patch
Type: application/octet-stream
Size: 3963 bytes
Desc: mod_mono-vhosts-switches.patch
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040518/dea3512e/attachment.obj 

More information about the Mono-devel-list mailing list