Apache Includes not getting included
Hi,
I've been trying to include something to my httpd.conf file. I'm using Home "Service Configuration "Apache Configuration "Include Editor and adding something to the global Post Virtual Include file. I'm not getting any errors and I can verify that the contents are being written to /etc/apache2/conf.d/includes/post_virtualhost_global.conf but they are not being added to /etc/apache2/conf/httpd.conf no matter how many times I restart apache.
Is there something else I need to do?
-
Hello @verdon, Good question! The contents of the Include directive is part of the template used to build /etc/apache2/conf/httpd.conf . EX: Include "/etc/apache2/conf.d/includes/post_virtualhost_global.conf"
Per the Apache document linked above: [QUOTE]The Include directive allows inclusion of other configuration files from within the server configuration files.
Thus, your custom changes are enabled, but you won't see them directly in the httpd.conf file. Let me know if this information helps. Thank you.0 -
@cPanelMichael Thanks for jumping in and correcting my cross-posting too... I've figured this out and will update the other thread. 0
Please sign in to leave a comment.
Comments
2 comments