开发者

mod_mono on windows

开发者 https://www.devze.com 2023-04-06 14:57 出处:网络
I am trying mod_mono on apache 2.2.x running on a win7 box – followed the steps described here. The module loads Ok, but I can\'t run my ASP.net application (404). Does anybody have any suggestions

I am trying mod_mono on apache 2.2.x running on a win7 box – followed the steps described here.

The module loads Ok, but I can't run my ASP.net application (404). Does anybody have any suggestions or an example configuration that works开发者_如何学C? Thanks.


My working config:

<VirtualHost *:80>
    ServerAlias localhost
    DocumentRoot "c:\web\mysite"
    MonoServerPath mysite "c:\mono\usr\bin\mod-mono-server2.exe"
    MonoApplications mysite "/:c:\web\mysite"

    <Directory "c:\web\mysite">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
        MonoSetServerAlias mysite
        SetHandler mono
        DirectoryIndex default.aspx index.html
    </Directory>
</VirtualHost>


I found a good tutorial for you.

Example mono configuration:

MonoServerPath default /usr/bin/mod-mono_server2
Alias [D] “[P]”
AddMonoApplications default “[D]:[P]”
<Location [D]>
SetHandler mono
</Location>

Another example:

MonoServerPath default /usr/bin/mod-mono_server2
Alias /MySite “/srv/www/htdocs/MySite”
AddMonoApplications default “/MySite:/srv/www/htdocs/MySite”
<Location /MySite>
SetHandler mono
</Location>
0

精彩评论

暂无评论...
验证码 换一张
取 消