SorinS
SorinS

Reputation: 180

mod_mono on windows

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? Thanks.

Upvotes: 4

Views: 4750

Answers (2)

Predator
Predator

Reputation: 1275

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>

Upvotes: 1

balint
balint

Reputation: 3431

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>

Upvotes: 1

Related Questions