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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

httpd / virtual host issue

Discussion in 'General Discussion' started by Secret Agent, Aug 11, 2005.

  1. Secret Agent

    Secret Agent Guest

    Had a client who's ex-admin screwed up the server with proxy and other configs that I have to fix.

    I removed / modifed the httpd.conf and unfortunately as before, site is still showing index directory instead of actual site content. The data is all uploaded correctly with index.hml and all. I even did a complete recreate / restore from last backup.

    Please tell me if the httpd.conf modifications I made is wrong. This is the last portion of it in order:

    NameVirtualHost xxx.202.65.162:80

    <Location /whm-server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from
    ExtendedStatus On

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteMap LeechProtect prg:/usr/local/cpanel/bin/leechprotect

    <VirtualHost xxx.202.65.162>
    BytesLog domlogs/
    DocumentRoot /usr/local/apache/htdocs

    <VirtualHost xxx.202.65.162>
    ServerAdmin matt@customerdomain
    DocumentRoot /home/mrethers/public_html
    BytesLog domlogs/
    <IfModule mod_userdir.c>
    Userdir disabled
    Userdir enabled mrethers
    User mrethers
    Group mrethers
    CustomLog /usr/local/apache/domlogs/ combined
    ScriptAlias /cgi-bin/ /home/mrethers/public_html/cgi-bin/

    ErrorDocument 400 /400.shtml
    ErrorDocument 401 /401.shtml
    ErrorDocument 403 /403.shtml
    ErrorDocument 404 /404.shtml
    ErrorDocument 500 /500.shtml
    ScriptAlias /cgi-sys/ /usr/local/cpanel/cgi-sys/
    Alias /sys_cpanel/ /usr/local/cpanel/sys_cpanel/
    Alias /java-sys/ /usr/local/cpanel/java-sys/
    Alias /img-sys/ /usr/local/cpanel/img-sys/
    Alias /akopia/ /usr/local/cpanel/3rdparty/interchange/share/akopia/
    Alias /neo-images/ /usr/local/cpanel/base/neomail/neo-images/
    ScriptAliasMatch ^/cpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAlias /whm /usr/local/cpanel/cgi-sys/whmredirect.cgi
    ScriptAlias /securewhm /usr/local/cpanel/cgi-sys/swhmredirect.cgi
    ScriptAlias /webmail /usr/local/cpanel/cgi-sys/wredirect.cgi
    ScriptAliasMatch ^/webmail/(.*) /usr/local/cpanel/cgi-sys/wredirect.cgi
    ScriptAliasMatch ^/kpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAlias /controlpanel /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAlias /securecontrolpanel /usr/local/cpanel/cgi-sys/sredirect.cgi
    Alias /mailman/archives/ /usr/local/cpanel/3rdparty/mailman/archives/public/
    ScriptAlias /mailman/ /usr/local/cpanel/3rdparty/mailman/cgi-bin/
    Alias /pipermail/ /usr/local/cpanel/3rdparty/mailman/archives/public/
    Alias /interchange/ /usr/local/cpanel/3rdparty/interchange/share/interchange/
    Alias /interchange-5/ /usr/local/cpanel/3rdparty/interchange/share/interchange-5/
  2. myusername

    myusername Well-Known Member

    Mar 6, 2003
    Likes Received:
    Trophy Points:
    chown -R us.*yourbase*
    cPanel Access Level:
    DataCenter Provider
    You might need this one in there, among others:

    # DirectoryIndex: Name of the file or files to use as a pre-written HTML
    # directory index. Separate multiple entries with spaces.
    <IfModule mod_dir.c>
    DirectoryIndex index.html index.wml index.cgi index.shtml index.jsp index.js index.php4 index.php3 index.php index.phtml index.htm default.htm default.html home.htm

Share This Page