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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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> |
|
|||
|
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 |