Results 1 to 3 of 3

Thread: httpd.conf mess

  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    37

    Default httpd.conf mess

    Hello Folks,
    I have a problem with my server and I am hoping that someone has some answers as to why it is doing what it is doing.

    I was checking something in the httpd.conf file earlier and I noticed that there are about 8 domain virtual host records written in the actual httpd.conf file instead of being in their own file in the /usr/local/apache/conf/sites folder.

    Is there an easy way to fix this? If I edit the httpd.conf file and create individual records in the /usr/local/apache/conf/sites folder for each domain will that work?

    The server is running Apache 2 and PHP 5.2.12

    Hope someone has come across this one before.
    Cheers
    Paul

  2. #2
    Member
    Join Date
    Feb 2010
    Location
    Kochi, India.
    Posts
    19

    Default

    Use the folowing cPanel script to check and correct most of the apache mis configurations.

    /scripts/rebuildhttpd.conf

    Also please elaborate your exact issue so that we can assist you better in this regards.

  3. #3
    Member
    Join Date
    Mar 2004
    Posts
    37

    Default

    Hello Techstar,
    Thanks for the reply.
    I had used the /scripts/rebuildhttpdconf before I posted here.
    I dont really know how to explain the situation any better than I did the first time, but I will try and explain it again.

    The server is running:
    cPanel 11.25.0-C43473 - WHM 11.25.0 - X 3.9
    CENTOS 4.8 i686 standard

    Half of the hosted domains on my server have the website configured using an include file located in /usr/local/apache/conf/sites/ for example lets say I have a domain called fredblogs.com the include file would be /usr/local/apache/conf/sites/www.fredblogs.com.conf and it would have the virtual host information in that file.

    The other half of the domains are configured in the actual httpd.conf file in /usr/local/apache/conf/httpd.conf. cpanel writes a line like
    # DO NOT EDIT. AUTOMATICALLY GENERATED. IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES. and then the virtual host configuration after that line.

    My question was why has cpanel configured half to the domains using include files and the other half using includes & how do I go about making the server only use the include files for the virtual host configurations, do I edit the httpd.conf file and cut the existing configs out and paste them in to their own include files?

    Thanks
    Paul
    Last edited by Worelock; 02-26-2010 at 11:48 PM.

Similar Threads

  1. Faulty httpd.conf - can't rebuild with rebuildhttpd.conf
    By movielad in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 03-21-2011, 12:43 PM
  2. Preserve amends to /etc/httpd/conf/httpd.conf ?
    By robocrop in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 08-14-2010, 02:08 AM
  3. httpd.conf sites/www.domain.com.conf Wildcard DNS
    By ttremain in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 12-16-2008, 11:19 AM
  4. Daily httpd restart changes AllowOverride None to All in httpd.conf
    By Lasers in forum cPanel & WHM Discussions
    Replies: 7
    Last Post: 02-26-2007, 12:17 PM
  5. httpd.conf
    By isinda in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 04-10-2002, 05:00 AM