Skip to main content

EasyApache4 and custom templates

Comments

3 comments

  • sparek-3
    Create the directory structure
    mkdir -p /etc/apache2/conf.d/userdata/std/2_4/chan/mysite.com
    Then create/modify whatever configuration additions you want to make for mysite.com using whatever command line editor you like
    /etc/apache2/conf.d/userdata/std/2_4/chan/mysite.com/custom.conf
    Then enable that section of code to be read by the httpd.conf file
    /scripts/ensure_vhost_includes --user=chan
    For what it's worth, the configuration paths changed in EasyApache4 from EasyApache3. In EasyApache3, these userdata directories were located in /usr/local/apache/conf/userdata/std/2/%user%/%domain% in EasyApache4 these changed to /etc/apache2/conf.d/userdata/std/2_4/%user%/%domain%
    0
  • carock
    Awesome! It works. The command I couldn't find in the docs was the /scripts/ensure_vhost_includes Thank you for your help. Chuck
    0
  • cPanelMichael
    Hello, I'm happy to see the information you were provided helped. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.