Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    56
    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:
    16,352
    Likes Received:
    404
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Is the server running SuPHP?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. BigLebowski

    BigLebowski Well-Known Member

    Joined:
    Dec 24, 2007
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    56
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice