[Mono-dev] mod_mono Configuration Question
Jonel Rienton
jonel at rientongroup.com
Wed Jan 25 10:11:09 EST 2006
Hi,
>From the INSTALL file in the source directory of mod_mono, you can replace
the SetHandler line below with
AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx
but this will make PathInfo unusable.
Regards,
Jonel
-----Original Message-----
From: mono-devel-list-bounces at lists.ximian.com
[mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of
stephen at covidimus.net
Sent: Wednesday, January 25, 2006 8:58 AM
To: mono-devel-list at lists.ximian.com
Subject: [Mono-dev] mod_mono Configuration Question
There doesn.t seem to be an ASP-on-mono or webforms list at
http://mono-project.com/Mailing_Lists, so I.m sending this to the devel list
(to which I was already subscribed). Please redirect me if there.s a more
appropriate place to ask the question.
I.m running mono 1.1.10 w/ Apache 2 and mod_mono. When I try to directly
access a .cs file contained in that directory, I get a 403, which is what I
expect. I want to turn that behavior off for a particular subdirectory in
that tree, though (an examples directory). Adding an .htaccess in that
directory with .RemoveHandler .cs. didn.t work. I put some syntax errors in
that .htaccess file and still got the 403 (rather than an expected 500), so
my guess is that mod_mono is handling everything below that directory and
Apache never sees the .htaccess. So, how do I either get that directory
back into Apache.s hands, or alternatively, tell mod_mono to serve .cs files
from that directory?
Here.s my Apache configuration:
MonoRunXSP True
MonoAutoApplication enabled
<IfModule !mod_mono.c>
LoadModule mono_module modules/mod_mono.so
</IfModule>
<IfModule mod_mime.c>
AddHandler mono .aspx .ashx .asmx .ascx .asax .config .ascx
</IfModule>
AddMonoApplications default
"/monosite:/var/www/localhost/htdocs/monosite"
<Location /monosite>
SetHandler mono
</Location>
Thanks.
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.22/239 - Release Date: 1/24/2006
More information about the Mono-devel-list
mailing list