[Pkg-mono-devel] mod_mono, apache2 and 503 Service Temporarily Unavailable error

jaret jaret@aberlorn.com
Mon, 07 Feb 2005 23:12:06 -0600


Hello all... I hope I am on the right list... If not, my apologies and 
just point me in the right direction.

I installed the latest and greatest pkg from When attempting to retrieve 
an aspx file from lynx of firefox, I've been getting a 503 Service Temp 
Unavailable error.  Happens with localhost and from outside my firewall. 
Mono compiles. I can browse web-pages. But no aspx/mono server related.  
Any ideas what's going on?

Permissions are root. Appears that way across the board for mono and apache.

netstat -an | grep LISTEN shows:
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
unix  2      [ ACC ]     STREAM     LISTENING     597    
/var/run/apache2/cgisock

Following other posts, I tried to run the mod server where it creates a 
socket in /tmp/ and then change r/w permissions. Sure, a daemon appears 
but same 503 error results... even when I change MonoUnixSocket 
/.tmp/mod_mono_server to MonoUnixSocket /tmp/mod_mono_server

For now I'm not really sure what's going on and throwing it out to you 
all to see if you had any ideas.

I used these sources for packages:
deb http://mirrors.rcn.net/debian/ sid main
deb http://debian.pablo.com.mx ./   # for libapache2-mod-mono

Here's the file setup:

 From mod_mono.load
LoadModule mono_module /usr/lib/apache2/modules/mod_mono.so

 From mod_mono.conf
AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx
DirectoryIndex index.aspx
# Include the web application definitions generated by 
mono-server-update.conf
Include /etc/mono-server/mono-server-hosts.conf

 From mono-server-hosts.conf
# Default configuration, don't edit it!
<IfModule mod_mono.c>
  MonoUnixSocket /.tmp/mod_mono_server
  MonoServerPath /usr/share/dotnet/bin/mod-mono-server.exe
  AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx
  MonoApplicationsConfigDir /etc/mono-server
  MonoPath /usr/share/dotnet/lib:/usr/lib:
# start /etc/mono-server/conf.d/asp.net-examples/10_asp.net-examples
     Alias /samples "/usr/share/asp.net-demos/asp"
       <Directory /usr/share/asp.net-demos/asp>
         SetHandler mono
           <IfModule mod_dir.c>
              DirectoryIndex index.aspx
           </IfModule>
       </Directory>
# end /etc/mono-server/conf.d/asp.net-examples/10_asp.net-examples
# start /etc/mono-server/conf.d/aspnet/10_aspnet
     Alias /aspnet "/var/www/aspnet"
       <Directory /var/www/aspnet>
         SetHandler mono
           <IfModule mod_dir.c>
              DirectoryIndex index.aspx
           </IfModule>
       </Directory>
# end /etc/mono-server/conf.d/aspnet/10_aspnet
</IfModule>

Thanks,

Jaret