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

Jaroslaw Kowalski jaak at zd.com.pl
Tue May 18 13:43:15 EDT 2004


Port-based virtual hosting is not functional in my patch. I concentrated on
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.

Jarek

----- 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 I
> 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 of
> XSP this morning, and rebuilt XSP.  I followed your set up instructions,
> and now I get "Service Temporarily Unavailable" when requesting an .aspx
> 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>
>
> LOGS:
> 1. I started Apache 2.0.49 first.
> 2. I launched mod-mono-server.exe with the switches you outline in your
> 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, and
> 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
>




More information about the Mono-devel-list mailing list