Question

When I access my site I see the Mono icon, but trying to access any page gives 503 error - "Service Temporarily Unavailable"

Here is near the end of my httpd.conf (IP addresses hidden):


Include /etc/httpd/conf/mod_mono.conf
<VirtualHost *.80>
DocumentRoot /var/www/html
ServerName 74.63.???.?
</VirtualHost>

And here is my mod_mono.conf


<IfModule !mod_mono.c>
LoadModule mono_module /usr/lib/httpd/modules/mod_mono.so.0.0.0
</IfModule>

<IfModule mod_headers.c>
Header set X-Powered-By "Mono"
</IfModule>

<IfModule mono_module>

AddType application/x-asp-net .aspx
....
DirectoryIndex index.aspx

MonoAutoApplication enabled
MonoDebug false
MonoServerPath "/usr/local/lib/mono/gac/mod-mono-server4/2.10.2.0__032efab45532/mod-mono-server4
Alias /test "/opt/monoserv"
MonoApplications "/test:/opt/monoserv"
SetHandler mono

</IfModule>
</IfModule>
Was it helpful?

Solution

Thanks shunty for the help. I looked at the logs and it said "Failed to connect to mod-mono-server after several attempts to spawn the process."

I changed the MonoServerPath to point to the example in shunty's comment, and changed the paths found in that file to correct ones.

Then I followed the instructions here: http://www.vbforums.com/showthread.php?524548-RESOLVED-mod_mono-with-apache

I still have problems, but at least they aren't related to server configuration anymore. Thanks!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top