I"m a bit confused about the proper location for custom apache includes for single virtual hosts.
The first part of Changes Contained within a VirtualHost Directive says
The first part of Changes Contained within a VirtualHost Directive says
But under the heading "Custom templates that will apply to a single virtual host when rebuilding an existing Apache configuration" it says ...It is important to note that the include directory structure is not created for you. You will need to create and use the following file structures:
For an individual VirtualHost container:
Apache 2 without SSL — /usr/local/apache/conf/userdata/std/2/$user/$domain/$includename.conf
Can someone please help me understand this?4. Move the *.local file to another directory.
Note: Any separate directory will do, as you will specify the location of the file.
Use the following script to add the necessary information to the data structure:
perl -MYAML::Syck -e 'my $hr = YAML::Syck::LoadFile($ARGV[0]);$hr->{$ARGV[1]} = $ARGV[2];YAML::Syck::DumpFile($ARGV[0],$hr);' /var/cpanel/userdata/$username/$domainname $key $path/to/template