Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.

Modify default virtualhost with custom configuration file.

cpforestk shared this idea 8 years ago
Open Discussion

We need a way to modify the default VirtualHost much like the options provided in this documentation:


https://documentation.cpanel.net/display/EA/Modify+Virtualhost+Containers+With+Include+Files


The documentation only seems to allow you to modify all of the VirtualHosts, all the VirtualHosts belonging to a specific user, or the VirtualHost of a specific domain. However, we need to be able to add something like an "Alias /download /usr/local/apache/download" directive to the default VirtualHost yet leave the other VirtualHosts unaffected. Please provide a way of doing this similar to the above documentation, such as placing our custom config files in the following two directories:


/usr/local/apache/conf/userdata/ssl/2_4/nobody/


/usr/local/apache/conf/userdata/std/2_4/nobody/


To be clear, we are looking for a solution that does not use the per-virtualhost include file(s). These already have data in them on our servers and we are looking for a way to place a ‘.conf’ file on these server to affect this change rather than manually update all of our per-virtualhost include files.

Leave a Comment
 
Attach a file