[Mono-devel-list] Jaroslaw: Trouble with vhosts.patch
Andrew Arnott
AndrewArnott at byu.edu
Tue May 18 12:17:01 EDT 2004
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
More information about the Mono-devel-list
mailing list