Basic Mono installation wont work

后端 未结 1 1835
孤独总比滥情好
孤独总比滥情好 2021-01-19 22:44

Am using a CentOS 5.3 box as prod server and am trying to get mono running there. after much sifting i managed to install version 2.10.2 via yum. i installed also xsp and mo

相关标签:
1条回答
  • 2021-01-19 23:22

    You mix "MonoAutoApplication" and "MonoApplications" in the same file. I don't think it works. The AutoConfiguration feature allows precisely to avoid having to declare the application.

    Here is my own mod_mono.conf (used on Mac OS X 10.7.2 and Linux Ubuntu 11.04) :

    <IfModule !mono_module>
        LoadModule mono_module "libexec/apache2/mod_mono.so"
    </IfModule>
    
    <IfModule mono_module>
        AddType application/x-asp-net .config .cs .csproj .dll .resources .resx .sln .vb .vbproj
        AddType application/x-asp-net .asax .ascx .ashx .asmx .aspx .axd .browser .licx .master .rem .sitemap .skin .soap .webinfo
    
        MonoAutoApplication enabled
        MonoDebug true
        MonoServerPath "/usr/bin/mod-mono-server4"
        MonoSetEnv LANG=fr_FR.UTF-8
        MonoUnixSocket "/tmp/.mod_mono"
    
        <IfModule dir_module>
            DirectoryIndex Default.aspx
        </IfModule>
    
        <DirectoryMatch "/(bin|App_Code|App_Data|App_GlobalResources|App_LocalResources)/">
            Order deny,allow
            Deny from all
        </DirectoryMatch>
    
        <Location "/Mono">
            Order deny,allow
            Deny from all
            Allow from 127.0.0.1 ::1
            SetHandler mono-ctrl
        </Location>
    </IfModule>
    

    As you can see, I never define any Alias or MonoApplications directive.

    0 讨论(0)
提交回复
热议问题