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.

Controlpanel redirects to cpanel

Discussion in 'General Discussion' started by evilopinions, Jul 30, 2012.

  1. evilopinions

    evilopinions Member

    Joined:
    Jan 31, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Guys,

    I have a website script setup and the admin is located in IANA — Example domains folder

    When I was on temporary IP it was working ok and I could access it using the 112.140.111.28/controlpanel/
    Now when I have migrated it to a domain name it redirects to /cpanel

    Can anyone help me ?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    This is because of the redirect alias in httpd.conf:

    Code:
    root@host [/etc/ssh]# grep controlpanel /usr/local/apache/conf/httpd.conf
    ScriptAliasMatch ^/?controlpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
    You could remove that line in httpd.conf file and then run these commands so it will not be used any longer for a redirect to cPanel:

    Code:
    cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak120730
    /usr/local/cpanel/bin/apache_conf_distiller --update
    /scripts/rebuildhttpdconf
    /etc/init.d/httpd restart
    Many sections of httpd.conf cannot have changes made to them, but this portion of the configuration can have components removed and then distilled for those changes.

    Thanks!
     
  3. evilopinions

    evilopinions Member

    Joined:
    Jan 31, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    :)

    Muaha ha ha ha ha

    One question.One answer.Issue Resolved.
    This was like a dream thread.
    There is no button to update the status but this is resolved for me.
     
Loading...

Share This Page