server with high cpu and not working properly

Topics: User Forum
Aug 14, 2006 at 2:23 PM
I'm testing the latest version in a windows 2003 with IIS 6.
I set it up so that if you go to http://test.unionlatina.org/foros it should redirect to http://test.unionlatina.org/foros.php

But for some reason, it won't do it. If you manually type the url you will see the php file is there but when you type the first one the server just hungs there taking alot of cpu. My line is this:

RewriteRule ^/foros/?$ /foros.php I,L
Aug 14, 2006 at 2:26 PM
Btw, the log file says this:
Sun Aug 13 14:08:46 2006 - HttpFilterProc SFNOTIFYURL_MAP
Sun Aug 13 14:08:46 2006 - HttpFilterProc SFNOTIFYAUTH_COMPLETE
Sun Aug 13 14:08:46 2006 - DoRewrites
Sun Aug 13 14:08:46 2006 - New Url: '/foros'
Sun Aug 13 14:08:46 2006 - ApplyRules (depth=0)
Sun Aug 13 14:08:46 2006 - Rule 1 : -1 (No match)
Sun Aug 13 14:08:46 2006 - Rule 2 : -1 (No match)
Sun Aug 13 14:08:46 2006 - Rule 3 : -1 (No match)
Sun Aug 13 14:08:46 2006 - Rule 4 : -1 (No match)
Sun Aug 13 14:08:46 2006 - Rule 5 : -1 (No match)
Sun Aug 13 14:08:46 2006 - Rule 6 : -1 (No match)
Sun Aug 13 14:08:46 2006 - Rule 7 : -1 (No match)
Sun Aug 13 14:08:46 2006 - Rule 8 : -1 (No match)
Sun Aug 13 14:08:46 2006 - Rule 9 : -1 (No match)
Sun Aug 13 14:08:46 2006 - Rule 10 : -1 (No match)
Sun Aug 13 14:08:46 2006 - Rule 11 : -1 (No match)
Sun Aug 13 14:08:46 2006 - Rule 12 : -1 (No match)
Sun Aug 13 14:08:46 2006 - Rule 13 : -1 (No match)
Sun Aug 13 14:08:46 2006 - Rule 14 : -1 (No match)
Sun Aug 13 14:08:46 2006 - Rule 15 : 1 matches

So it seems to match but it won't forward there.

I paste my whole config file in case you want to copy and paste it into your test scenario and see if it happens the same.

  1. IsapiRewrite4.ini
#
  1. sample ini file for the ISAPI rewriter.
#
  1. comment lines begin with #
#
  1. These are the currently supported directives for the ini file:
#
  1. IterationLimit
  2. MaxMatchCount
  3. RewriteRule
  4. RewriteLog
  5. RewriteLogLevel
  6. RewriteCond
#
#
  1. Check the examples below for how to use each one.
  2. See the Readme.txt for full explanation of the rules here.
#
#
  1. Wed, 07 Sep 2005 09:01



#
  1. The set of rewrite rules in this file is partially for illustration, and
  2. partially for filtering ad requests. I also have a hosts file that
  3. redirects known ad servers to my local machine, as per
  4. http://www.mvps.org/winhelp2002/hosts.htm .
#
  1. This rewrite rule file redirects the ad requests to the local machine, to a
  2. "filtered.htm" file. You drop the "filtered.htm" into c:\inetsrv\wwwroot and
  3. you can put anything you like into the filtered.htm file. It will display for
  4. every filtered ad.
#
  1. Wed, 13 Apr 2005 09:54



RewriteLog c:\temp\iirfLog.out
RewriteLogLevel 3

  1. MaxMatchCount
#
  1. Specifies the maximum number of sub-expression matches to
  2. capture for a single pattern. This specifies the size of the
  3. array in the C module. If you have a pattern with more than
  4. the default number of matches, set this number.
#
  1. The default is 10.

MaxMatchCount 10


  1. IterationLimit
#
  1. Specifies the limit of mapping iterations for a single URL request. The default is 8.
  2. Sometimes you can have logical loops in the mapping, so this is necessary to prevent infinite rewriting.
IterationLimit 10

RewriteRule ^/noticias/?$ /noticias.php I,L
RewriteRule ^/noticias/(0-9+)/?$ /noticia.php?id_news=$1 I,L

RewriteRule ^/tutoriales/?$ /tutorialescat.php I,L
RewriteRule ^/tutoriales/(0-9a-z_-)/(0-9a-z_-)/?$ /tutorial.php?categoria=$1&id_tuto=$2 I,L
RewriteRule ^/tutoriales/(0-9a-z_-+)/?$ /tutoriales.php?categoria=$1 I,L
RewriteRule ^/tutoriales/(0-9a-z_-)/pagi(0-9)/?$ /tutoriales.php?categoria=$1&show=$2 I,L

RewriteRule ^/imagenes/?$ /imagenes.php I,L
RewriteRule ^/imagenes/(0-9+)/?$ /galeria.php?ini=$1 I,L
RewriteRule ^/perfiles/(0-9a-z\ñ\@\.\Ø\Ð\£\_\-\^\[\]\+)/?$ /perfil.php?nick=$1 I,L
RewriteRule ^/perfiles/(0-9a-z\ñ\@\.\Ø\Ð\£\_\-\^\[\]\)/pag(0-9)/?$ /perfil.php?nick=$1&show=$2 I,L

RewriteRule ^/descargas/?$ /descargascat.php I,L
RewriteRule ^/descargas/(0-9a-z_-+)/?$ /descargas.php?categoria=$1 I,L
RewriteRule ^/descargas/(0-9a-z_-)/(0-9)/?$ /descarga.php?categoria=$1&id_down=$2 I,L
RewriteRule ^/descargas/(0-9a-z_-)/(0-9)/pag(0-9+)/?$ /descarga.php?categoria=$1&id_down=$2&show=$3 I,L

RewriteRule ^/foros/?$ /foros.php I,L
RewriteRule ^/foros/(0-9a-z\_\-\.+)/?$ /temas.php?categoria=$1 I,L
RewriteRule ^/foros/(0-9a-z\_\-\.)/pag(0-9)/?$ /temas.php?categoria=$1&show=$2 I,L
RewriteRule ^/foros/(0-9a-z\_\-\.)/(0-9)/?$ /post.php?categoria=$1&id_foro=$2 I,L

RewriteRule ^/foros/(0-9a-z\_\-\.)/pag(0-9)\?$ /temas.php?categoria=$1&pg=$2 I,L

RewriteRule ^/entrevistas/(0-9+)/?$ /entrevista.php?id_ent=$1 I,L

RewriteRule ^/privados/?$ /leer_privados.php I,L
RewriteRule ^/privados/pag(0-9+)/?$ /leer_privados.php?show=$1 I,L

RewriteRule ^/inicio/?$ /main.php I,L
RewriteRule ^/reglas/?$ /reglas.php I,L
RewriteRule ^/operadores/?$ /opers.php I,L
RewriteRule ^/nosotros/?$ /nosotros.php I,L
RewriteRule ^/historia/?$ /historia.php I,L
RewriteRule ^/webchat/?$ /webchat.php I,L
RewriteRule ^/firmar/?$ /firmar.php I,L
RewriteRule ^/libro/?$ /libro.php I,L
RewriteRule ^/recomienda/?$ /recomienda.php I,L
RewriteRule ^/ciudad/?$ /ciudad.php I,L
RewriteRule ^/enlazanos/?$ /enlazanos.php I,L
RewriteRule ^/contactar/?$ /contactar.php I,L




Aug 14, 2006 at 5:59 PM
I've been struggling for 2 days to get stuff working, but I have found the "testdriver" program very helpful. You might give it a try if you have not yet.
Aug 14, 2006 at 7:17 PM
When I use the testdriver i get a crash:
Debug assertion failed!
file dbgheap.c
line 1252
expression: _CrtIsValidHeapPointer(pUserData)

For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts.


That's what i get when i put a /foros on it

btw im using version 1.2.10e
Coordinator
Aug 15, 2006 at 12:56 AM
Debug assertion in testdriver.exe?
YEs, the v1.2.10 code base is not completely solid yet. I Saw this problem also.

Please grab v1.2.10g - at this location:

http://cheeso.members.winisp.net/dl/IonicIsapiRewriter-1.2.10g.zip

This should correct the assertion in the testdriver.exe, though it will not necessarily correct the problem you have been having with foros- > foros.php.

-Dino