The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RewriteRule rule crashes server

Discussion in 'General Discussion' started by BigLebowski, Jan 6, 2010.

  1. BigLebowski

    BigLebowski Well-Known Member

    Joined:
    Dec 24, 2007
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    hi there

    Whenever a client uses:

    RewriteRule ^(([^/\.\?]+/?)*)$ index.php?c=$1 [L,QSA]

    in .htaccess, it spawns several Apache threads each consuming 99.9% CPU. These need to be killed otherwise the entire server is, eventually, brought to it knees.

    Would there be any mod rewrite gurus out there that could shed any light please?

    Regards
    Dude
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,449
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Is the server running SuPHP?
     
  3. BigLebowski

    BigLebowski Well-Known Member

    Joined:
    Dec 24, 2007
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    yes indeed :) I have a feeling you know the answer to this :)

    note the 99% Apache threads are running as "nobody" instead of "userid"
     
    #3 BigLebowski, Jan 6, 2010
    Last edited: Jan 6, 2010
Loading...

Share This Page