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!

What the best way to add some directories to apache default host via WHM

Discussion in 'EasyApache' started by strangeman, Oct 16, 2013.

  1. strangeman

    strangeman Registered

    Joined:
    Oct 16, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    For example, I have server host.example.com. It hosts bunch of sites with personal domains - example1.com, example2.com, example3.com etc.
    I installed and configured zabbix, and I want to get access to it via host.example.com/zabbix. Where is I can write something like

    Code:
    Alias /zabbix /usr/share/zabbix
    <Directory "/usr/share/zabbix">
        Options Indexes FollowSymLinks
        DirectoryIndex index.php
        AllowOverride none
        allow from all
    </Directory>
    ? :-/
     
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    11
    Trophy Points:
    168
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    You could try to add the 1st line in Pre Main Include
    and the rest in Post VirtualHost Include
    WHM -> Service Configuration -> Apache Configuration -> Include Editor
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,971
    Likes Received:
    1,824
    Trophy Points:
    363
    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