Notizen zum Betrieb von ASP.net unter Debian
Betrieb mit XSP
Installierte Packete (debian unstable):
Konfiguration unter
 /etc/xsp
Applikationspfad zufügen mit
 mono-xsp-admin.conf add --path=<Pfadname> --app=<virtueller Pfad>
also z.B.
 mono-xsp-admin.conf add --path=/home/su/asp --app=/asp
Betrieb mit Apache und mod_mono
Mono makes this possible in the form of the mod_mono module for Apache which makes use of XSP or, to be more specific, it makes use of mod-mono-server.exe which is a specialized version of XSP.
You must have Mono installed, you must have XSP installed, and you must have Apache installed.
The debian version of mono-apache-server includes a mono-server-update.conf script that creates a           configuration file for apache to start the ASP.NET applications, and mono-server-update.conf can restart apache if there's a new configuration file (/etc/mono-server/mono-server-hosts.conf). Would you like to restart apache if there's a new mono-server-hosts.conf file?
Die Installation des mod_mono ergänzt die Datei
 /etc/apache/modules.conf
um
 LoadModule mono_module /usr/lib/apache/1.3/libmod_mono.so
Konfiguration unter
 /etc/mono-server
Applikationspfad zufügen mit
 mono-server-admin.conf add --path=<Pfadname> --app=<virtueller Pfad>
also z.B.
 mono-server-admin.conf add --path=/home/su/asp --app=/asp
Das trägt obigen Pfad ein in:
 /etc/mono-server/debian.webapp
 /etc/mono-server/mono-server-hosts.conf
Probleme
Die Moduleversion apache-mod-mono 1.0-1, die im Moment in unstable mitgeliefert wird, führt zu einem Serverfehler. Durch Hilfe im debianforum hab ich eine andere Quelle in der sources.lst für das Modul benutzt
 #mod-mono
 deb http://debian.pablo.com.mx ./ 
und apache-mod-mono 1.0.5-0pre1 benutzt. Da funktioniert der Eintrag in
 /etc/mono-server/debian.webapp
nicht, und man muss nach dem Zufügen der Applikation in der Datei
 /etc/mono-server/mono-server-hosts.conf
noch selbst nach dem Alias den Eintrag für die Monoapplikation einfügen
 MonoApplications "/asp:/home/su/asp"
dann funktionierts.
Quellen:
 http://www.codeproject.com/cpnet/introtomono2.asp
 http://www.debianforum.de/forum/viewtopic.php?t=49596