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!

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:
    151
    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:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. GwynarBBSC

    GwynarBBSC Registered

    Joined:
    Feb 8, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    151
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice