Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Secret Agent
    Guest

    Default httpd / virtual host issue

    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 127.0.0.1
    </Location>
    ExtendedStatus On

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

    <VirtualHost xxx.202.65.162>
    BytesLog domlogs/server.customerdomain.com-bytes_log
    ServerName server.customerdomain.com
    DocumentRoot /usr/local/apache/htdocs
    </VirtualHost>

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


    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. #2
    cPanel Partner NOC cPanel Partner NOC Badge myusername's Avatar
    Join Date
    Mar 2003
    Location
    chown -R us.us *yourbase*
    Posts
    712
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    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.jp index.php4 index.php3 index.php index.phtml index.htm default.htm default.html home.htm
    </IfModule>
    GlowHost.com | Professional Managed Web Hosting Since 2002.
    >> Fully Managed Dedicated, Cloud VDS, Reseller & Semi-Dedicated
    >> Cloud Servers for Enterprise

Similar Threads & Tags
Similar threads

  1. Apache httpd.conf every virtual host using port 8888 and not 80
    By Saint Isaiah in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-29-2011, 02:23 PM
  2. virtual host directive help please!
    By sifuhall in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-22-2010, 08:05 AM
  3. Virtual host
    By pinehead in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-11-2007, 09:56 PM
  4. Apache 2... Virtual Host
    By jaymc in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 01-05-2006, 12:22 PM
  5. Virtual Host
    By zaqizaba in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-20-2005, 11:18 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube