How to add apache server configurations?

I have a solution for this. Let’s say I have a file with additional apache server configuration for a specific route, called /mnt/HD/HD_a2/Nas_Prog/apache_extra_config :

# append extra config to end of httpd config
cat /mnt/HD/HD_a2/Nas_Prog/apache_extra_config >> /usr/local/apache2/conf/httpd.conf

# restart httpd
httpd -f /usr/local/apache2/conf/httpd.conf -k graceful

Note that this has to be redone whenever the machine reboots. See: Crontab on MyCloud EX2

1 Like