mono-apache配置
<VirtualHost *:80> DocumentRoot /var/www KeepAlive On MonoServerPath default-site "/usr/bin/mod-mono-server4" MonoDebug default-site true MonoSetEnv MONO_THREADS_PER_CPU=100 CustomLog /proc/self/fd/1 combined ErrorLog /proc/self/fd/2 MonoApplications default-site "/:/var/www" <Location "/"> Allow from all Order allow,deny MonoSetServerAlias default-site SetHandler mono SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary </Location> <Location /mono> Allow from all Order allow,deny SetHandler mono-ctrl </Location> <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript </IfModule> </VirtualHost>