Mod_mono はページを提供していません。URL にアクセスすると、ページを提供するのではなくダウンロードするだけです。これが私の仮想ホストファイルです。それ以外はすべてデフォルト設定で、mod_mono を有効にしてサーバーを再起動しただけです
Ubuntu 12.04 x64でvirtualminを実行しています
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName mysite.com
ServerAlias www.mysite.com
ServerAdmin dev@mysite.com
DocumentRoot /home/mysite/public_html
# MonoServerPath can be changed to specify which version of ASP.NET is hosted
# mod-mono-server1 = ASP.NET 1.1 / mod-mono-server2 = ASP.NET 2.0
# For SUSE Linux Enterprise Mono Extension, uncomment the line below:
# MonoServerPath mysite.com "/opt/novell/mono/bin/mod-mono-server2"
# For Mono on openSUSE, uncomment the line below instead:
MonoServerPath mysite.com "/usr/bin/mod-mono-server4"
# To obtain line numbers in stack traces you need to do two things:
# 1) Enable Debug code generation in your page by using the Debug="true"
# page directive, or by setting <compilation debug="true" /> in the
# application's Web.config
# 2) Uncomment the MonoDebug true directive below to enable mod_mono debugging
MonoDebug mysite.com true
# The MONO_IOMAP environment variable can be configured to provide platform abstraction
# for file access in Linux. Valid values for MONO_IOMAP are:
# case
# drive
# all
# Uncomment the line below to alter file access behavior for the configured application
MonoSetEnv mysite.com MONO_IOMAP=all
#
# Additional environtment variables can be set for this server instance using
# the MonoSetEnv directive. MonoSetEnv takes a string of 'name=value' pairs
# separated by semicolons. For instance, to enable platform abstraction *and*
# use Mono's old regular expression interpreter (which is slower, but has a
# shorter setup time), uncomment the line below instead:
# MonoSetEnv mysite.com MONO_IOMAP=all;MONO_OLD_RX=1
MonoApplications mysite.com "/:/home/mysite/public_html"
<Location "/">
MonoSetServerAlias mysite.com
SetHandler mono
AddHandler mod_mono .aspx .ascx .asax .ashx .config .cs .asmx
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
SetHandler mono
DirectoryIndex default.aspx
</Location>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript
</IfModule>
</VirtualHost>
私が逃したものは何でも