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.

Default vhost entry in httpd.conf

Discussion in 'General Discussion' started by GwynarBBSC, Feb 1, 2008.

  1. GwynarBBSC

    GwynarBBSC Registered

    Joined:
    Feb 8, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Not sure if this is the right place to post this or not, but I wanted to know if there is a way to modify / remove the default vhost entry in the httpd.conf file. This is under ea3 so any manual changes I make always get overwritten.

    Is this possible to do with the current system?

    Thank you in advance.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,470
    Likes Received:
    198
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. GwynarBBSC

    GwynarBBSC Registered

    Joined:
    Feb 8, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Yes, I have read that. Unfortunately it doesn't cover the default vhost entry.

    Incidentally, I'm talking about the catch-all default vhost entry -- the one that is geared for unbound IPs... Specifically, this entry:

    Code:
    <VirtualHost *>
        ServerName domain.com
        DocumentRoot /usr/local/apache/htdocs
        ServerAdmin admin@domain.com
        UserDir disable
    </VirtualHost>
    I want to either remove or modify the DocumentRoot for this entry. Changing it manually and then running [ /usr/local/cpanel/bin/apache_conf_distiller --update --main ] and [ /usr/local/cpanel/bin/build_apache_conf ] erases the changes I made.
     
Loading...

Share This Page