[Mono-osx] configuring mod_mono for apache

Pierre Mignolet p.mignolet@ulg.ac.be
Tue, 26 Apr 2005 12:02:33 +0200


It's not working :-(

So in httpd.conf I wrote:
LoadModule mono_module        libexec/httpd/mod_mono.so
AddModule mod_mono.c

And in xsp_examples:
# mod_mono.conf

Alias /examples
"/Library/Frameworks/Mono.framework/Versions/current/share/doc/xsp/test"
MonoApplications
"/examples:/Library/frameworks/Mono.framework/Versions/current/share/doc/=
xsp
/test"
MonoExecutablePath =
"/Library/Frameworks/Mono.framework/versions/current/bin"
MonoServerPath
"/Library/frameworks/Mono.framework/Versions/current/lib/mono/1.0/mod-mon=
o-s
erver.exe"
MonoMaxCPUTime 900

<Directory
/Library/Frameworks/Mono.framework/Versions/current/share/doc/xsp/test>
SetHandler mono
<IfModule mod_dir.c>
DirectoryIndex index.aspx
</IfModule>
</Directory>

Maybee I miss something but now in my browser when I type:
localhost/examples, I get:=20

Service Temporary Unavailable
The server is temporarily unable to service your request due to =
maintenance
downtime or capacity problems. Please try again later.
Apache/1.3.33 Server at localhost Port 80

-----Message d'origine-----
De=A0: Andy Satori [mailto:dru@druware.com]=20
Envoy=E9=A0: lundi 25 avril 2005 17:27
=C0=A0: Pierre Mignolet
Objet=A0: Re: [Mono-osx] configuring mod_mono for apache

I can't really answer about Tiger, I'm not even sure which version of=20
apache is installed in Tiger, but under Panther, you can treat it like=20
a virtual site via it's include setup.

Assuming things haven't changed too much, add the following to your=20
/private/etc/httpd.conf file:

LoadModule mono_module        libexec/httpd/mod_mono.so

AddModule mod_mono.c

then create a file in /private/etc/httpd/users called xsp_examples.conf=20
and place the following text in it (altering it to match your paths of=20
course):

# mod_mono.conf

Alias /examples "/Library/XSP/share/doc/xsp/test"
MonoApplications "/examples:/Library/XSP/share/doc/xsp/test"
MonoExecutablePath "/usr/bin/mono"
MonoServerPath "/Library/XSP/lib/mono/1.0/mod-mono-server.exe"
MonoMaxCPUTime 900

<Directory /Library/XSP/share/doc/xsp/test>
    SetHandler mono
        <IfModule mod_dir.c>
              DirectoryIndex index.aspx
        </IfModule>
</Directory>


Save this and restart your web server.

Andy


On Apr 25, 2005, at 10:40 AM, Pierre Mignolet wrote:

> Tiger.
>
> I have compiled all by default. It seems to be in=20
> Library/frameworks/mono...
>
> I have launched xsp on port 8080 and try to called it, everything was=20
> right.
>
> Know I'm just trying to configure apache to call mod_mono.
>
> Thx
>
> -----Message d'origine-----
> De=A0: Andy Satori [mailto:dru@druware.com]
> Envoy=E9=A0: lundi 25 avril 2005 16:38
> =C0=A0: Pierre Mignolet
> Cc=A0: mono-osx@lists.ximian.com
> Objet=A0: Re: [Mono-osx] configuring mod_mono for apache
>
> OS X client or Server ?  Puma, Panther, Tiger ?
>
> Andy
> On Apr 25, 2005, at 10:33 AM, Pierre Mignolet wrote:
>
>> Hello,
>> =A0
>> I=92m a beginner in OSX and apache.
>> =A0
>> I got mono installed on my mac os. Xsp runs correctly. Now I=92m =
trying
>> to configure mod_mono to run with apache. Can someone help ?
>> =A0
>> Thx !
>> =A0
>
>
>
>