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.

mod_Rewrite !! Removing this will break certain functionality !!

Discussion in 'General Discussion' started by hekri, Jan 3, 2008.

  1. hekri

    hekri Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    149
    Likes Received:
    2
    Trophy Points:
    18
    Hello

    Today i compile couple times apache 2.0.61 and allways have it without mod_rewrite, WHY?

    I go to profiles in ssh and change in my profile Rewrite from 0 to 1, now i see in profile details

    Rewrite
    !! Removing this will break certain functionality !!


    In any option i have the same problem, no mod_rewrite :(

    Centos (on last stable and on last relase) the same problem.
     
  2. LiNUxG0d

    LiNUxG0d Well-Known Member

    Joined:
    Jun 25, 2003
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gatineau, Quebec, Canada
    Same here.

    I've compiles 2.2 and I can't seem to find mod_rewrite in the /usr/local/apache/modules/ folder nor in the 'Exhaustive List of Options' that cPanel provides in EA3.

    Any ideas? Is it now default to Apache 2.0+?
     
  3. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    mod_rewrite is compiled in. Its not a dso.
     
  4. Francisco

    Francisco Well-Known Member

    Joined:
    Jun 3, 2003
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    Its not working here. There's notthing mentioning it on .httpd.conf

    Is there a setting missing on httpd.conf??
     
  5. jdlightsey

    jdlightsey Perl Developer III
    Staff Member

    Joined:
    Mar 6, 2007
    Messages:
    126
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Houston Texas
    cPanel Access Level:
    Root Administrator
    Nothing in httpd.conf needs to mention it. Since it's compiled into Apache there's no need for LoadModule or AddModule lines.

    /usr/local/apache/bin/httpd -l
    ...
    mod_rewrite.c
    ...

    You'd need to be more specific about what isn't working. The Redirect functionality in cPanel uses mod_rewrite and works fine. All of the directives from the Redirect functionality go in .htaccess files. Nothing gets added to the main httpd.conf.
     
  6. Francisco

    Francisco Well-Known Member

    Joined:
    Jun 3, 2003
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    6
    The following directive on .htaccess used to work in apache 1.3 but no longer works in 2.2


    <FilesMatch "^archive|archives|blog|category|extra|feed|item|member$">
    SetHandler application/x-httpd-php
    </FilesMatch>
     
  7. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    What error is recorded in the logs?
     
Loading...

Share This Page