Injecting custom httpd config into server ip

mik3ca

New member
Joined
May 31, 2026
Messages
5
In my server I see the file:
httpd-vhosts.conf

where I can possibly directly modify the virtualhost for the IP address itself.

I want to be able to add an include line to a script (instead of using .htaccess files).

I would normally append something like this to httpd.conf and restart apache:

Code:
<virtualhost ipaddress:port>
...
include /somefile.conf
...
</virtualhost>

Since I am using directadmin, performing my steps would be impossible as directadmin would overwrite the configuration.

How do I make my configuration stick even if changes are made inside directadmin itself?
 
Back
Top