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!

Where is virtualhost file for domain?

Discussion in 'EasyApache' started by OooLong, Feb 13, 2018.

  1. OooLong

    OooLong Well-Known Member

    Joined:
    Mar 16, 2011
    Messages:
    104
    Likes Received:
    1
    Trophy Points:
    66
    cPanel Access Level:
    Website Owner
    This is for Easyapache 3 I still haven't upgrade yet.

    In the /etc/httpd/conf/httpd.conf file

    Under the domain it say:

    # To customize this VirtualHost use an include file at the following location
    # Include "/usr/local/apache/conf/userdata/std/2_4/destiny2infos/example.com/*.conf"

    I make a conf file in that location but the server doesn't seem to read .conf file. I test by typing random letters and the server didn't produce any error after restarting. Where is the conf file for a virtual host locate in Easyapache3?
     
    #1 OooLong, Feb 13, 2018
    Last edited by a moderator: Feb 14, 2018
  2. OooLong

    OooLong Well-Known Member

    Joined:
    Mar 16, 2011
    Messages:
    104
    Likes Received:
    1
    Trophy Points:
    66
    cPanel Access Level:
    Website Owner
    It's confirmed now that the virtualhost include file doesn't work.

    I put the same directive in httpd.conf under and it work:
    <VirtualHost 162.210.xxx.xxx:80>
    ServerName example.com
    </VirtualHost>
     
    #2 OooLong, Feb 13, 2018
    Last edited by a moderator: Feb 14, 2018
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,565
    Likes Received:
    43
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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