mono-apache-server2 should use AutoHosting by default

Bug #179290 reported by John Ryan on 2007-12-29
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xsp (Ubuntu)

Bug Description

Binary package hint: mono-apache-server2

The mono-apache-server2 package does not turn on mod_mono's AutoHosting feature. As a result, even a correct install of apache2, mono-apache-server2 and libapache2-mod-mono will not immediately begin serving ASP.NET pages. This can be remedied by adding the line:

  MonoAutoApplication enabled

to /etc/mono-server2/mono-server2-hosts.conf immediately following the MonoServerPath line.

This change can be made permanent by altering the /usr/sbin/mono-server2-update script to include the following line after line 223 (the MonoServerPath entry):

    print TEMPHOST " MonoAutoApplication enabled\n";

The same problem exists in the mono-apache-server package although I have not personally confirmed that AutoHosting works in ASP.NET 1.0

Daniel T Chen (crimsun) on 2008-11-21
Changed in xsp:
importance: Undecided → Wishlist
Ben Rousch (brousch) wrote :

You can also use Autohosting by enabling the mod_mono_auto Apache module instead of the mod_mono module.
sudo a2enmod mod_mono_auto

Changed in xsp:
status: New → Confirmed
Jo Shields (directhex) wrote :

There have been some changes to the packaging in 2.4.2 to make doing this much easier

Previously, there were two mod-monos:

mono-apache-server for ASP.NET 1.1


mono-apache-server2 for ASP.NET 2.0

The blocker on autohosting has been that mod_mono's autohosting is hard-coded to use "mono-apache-server"

As of Karmic (soon), this has been changed - we now have:

mono-apache-server1 for ASP.NET 1.1
mono-apache-server2 for ASP.NET 2.0
mono-apache-server as a symlink either settable by the user, or by default, pointing to mono-apache-server2

I haven't enacted the change in packaging to make mod_mono_auto the default, but now at least, it works with 2.0 - and depending on how well it works, I may make auto the default in future.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions