mod_rewrite with mod_mono

This is a discussion on mod_rewrite with mod_mono within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, Can someone help me with a problem involving mod_rewrite and mod_mono? It seems the mono handler is ignoring the ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-10-2006
ross
 
Posts: n/a
Default mod_rewrite with mod_mono

Hi, Can someone help me with a problem involving mod_rewrite and
mod_mono? It seems the mono handler is ignoring the transformed request
from mod_rewrite and is trying to process the untransformed request.
Any Ideas?

I am using apache 2.0.54-r31 (gentoo) and mod_mono 1.0.0-r1 (gentoo)

<VirtualHost *:80>
DocumentRoot /var/www/my.website.co.uk
ServerName my.website.co.uk
ErrorLog /var/log/apache2/dotnet-error_log
CustomLog /var/log/apache2/dotnet-access_log common

MonoRunXSP True
MonoApplications "/:/var/www/my.website.co.uk/"

<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>

RewriteEngine On
RewriteLog /var/log/apache2/dotnet-rewrite_log
RewriteLogLevel 3

<Directory /var/www/my.website.co.uk>
AddHandler mono .aspx .ashx .asmx .ascx .asax .config
..ascx
# SetHandler mono
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.aspx
</IfModule>
</Directory>

RewriteRule ^/pages/home$ / [R,L]
RewriteRule ^/$ /en/home [R,L]

RewriteRule ^/([a-z]{2})/([a-zA-Z0-9\-_/]*)$
/mypage.aspx\?_tag=$2\&_lang=$1 [L]

</VirtualHost>

  #2 (permalink)  
Old 01-10-2006
Justin Koivisto
 
Posts: n/a
Default Re: mod_rewrite with mod_mono

ross wrote:
> Hi, Can someone help me with a problem involving mod_rewrite and
> mod_mono? It seems the mono handler is ignoring the transformed request
> from mod_rewrite and is trying to process the untransformed request.
> Any Ideas?
>
> I am using apache 2.0.54-r31 (gentoo) and mod_mono 1.0.0-r1 (gentoo)


Is it possible that mo_mono is being loaded before mod_rewrite when
apache starts? Not sure if that would make a difference since I haven't
used mod_mono before, just a guess...

--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:23 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0