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.

All kinds of inconsistencies in httpd.conf

Discussion in 'General Discussion' started by sexy_guy, Mar 29, 2003.

  1. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    I have spent the latter part of 1hr correcting a whole bunch of errors in the httpd.conf left over by cPanel v6 scripts modifying my httpd.conf incorrectly.

    1) Yesterday i switched a site from a ip based site to a named based site. That left my http.conf spitting out the following errors all day.

    [Sat Mar 29 01:00:29 2003] [warn] NameVirtualHost 111.11.111.111:80 has no VirtualHosts
    [Sat Mar 29 01:00:29 2003] [warn] NameVirtualHost 222.22.222.22:80 has no VirtualHosts

    After i fixed that error and while looking through the rest of the virtuahosts i found many many virtual sites that look like this;

    <VirtualHost 111.11.111.111>
    BytesLog domlogs/lists.dgmetals.com-bytes_log
    User dgi
    Group dgi
    ServerName lists.dgi.com
    ServerAdmin wwwadmin@dgi.com
    DocumentRoot /home/dgi/public_html/lists
    CustomLog domlogs/lists.dgi.com combined
    ScriptAlias /cgi-bin/ /home/dgi/public_html/lists/cgi-bin/
    User dgi
    Group dgi
    </VirtualHost>

    See anything wrong with this? Duplicate User and groups!! This is definately a v6 problem. Some script is modifying httd.conf but this is not correct.

    Howabout this one?

    <VirtualHost 111.11.11.111>
    ServerAlias www.lapl.biz lapl.biz
    ServerAdmin webmaster@lapl.biz
    DocumentRoot /home/lapl/public_html
    BytesLog domlogs/lapl.biz-bytes_log
    User lapl
    Group lapl
    ServerName www.lapl.biz
    ScriptAlias /cgi-bin/ /home/lapl/public_html/cgi-bin/
    ScriptAlias /cgi-bin/ /home/lapl/public_html/cgi-bin/
    ScriptAlias /cgi-bin/ /home/lapl/public_html/cgi-bin/
    CustomLog domlogs/lapl.biz combined
    ScriptAlias /cgi-bin/ /home/lapl/public_html/cgi-bin/
    </VirtualHost>

    Many copies of ScriptAlias? I remember somebody posting about this back in v5 which is a result of a reseller upgrading/downgrading an account.
     
    #1 sexy_guy, Mar 29, 2003
    Last edited: Mar 29, 2003

Share This Page