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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Where is virtualhost file for domain?

Discussion in 'EasyApache' started by OooLong, Feb 13, 2018 at 7:51 PM.

  1. OooLong

    OooLong Well-Known Member

    Joined:
    Mar 16, 2011
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    56
    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 at 7:51 PM
    Last edited by a moderator: Feb 14, 2018 at 4:28 AM
  2. OooLong

    OooLong Well-Known Member

    Joined:
    Mar 16, 2011
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    56
    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 at 9:12 PM
    Last edited by a moderator: Feb 14, 2018 at 4:27 AM
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,541
    Likes Received:
    38
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page