##
##  apache-mono.conf -- Apache configuration for Mono
##

#   load DSO
LoadModule mono_module @l_prefix@/libexec/apache/mod_mono.so

#   path to the Mono server program
MonoServerPath "@l_prefix@/bin/mod-mono-server4"

#   provide internal Mono control service
<Location /mono-ctrl>
    SetHandler mono-ctrl
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
</Location>

#   allow central Mono applications
MonoAutoApplication disabled
MonoApplications "/mono:@l_prefix@/libexec/apache-mono"
Alias /mono @l_prefix@/libexec/apache-mono
<Location /mono>
    Order allow,deny
    Allow from all
    SetHandler mono
    <IfModule mod_dir.c>
        DirectoryIndex index.aspx
    </IfModule>
</Location>

#   allow de-central Mono application
AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .cs
AddType application/x-asp-net .vb
AddType application/x-asp-net .master
AddType application/x-asp-net .sitemap
AddType application/x-asp-net .resources
AddType application/x-asp-net .skin
AddType application/x-asp-net .browser
AddType application/x-asp-net .webinfo
AddType application/x-asp-net .resx
AddType application/x-asp-net .licx
AddType application/x-asp-net .csproj
AddType application/x-asp-net .vbproj
AddType application/x-asp-net .config
AddType application/x-asp-net .Config
AddType application/x-asp-net .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx

