Creating the script for updating or replacing the existing http.conf file

Hi
I need some help with a task, i am an absolute newbie to any form of shell scripting and request guidance.

I have been building a proxy server using the apache mod proxy currently my solution is working , but i need to automate the process , suppose if any changes need to be made on httpd.conf file , it can be done by using the script outside the server . The script need to be updated with latest content also the service should get restarted or the new content file should get replaced with the old file on the server. I want to add the lines in the existing httpd.conf file using the script externally. The users who will edit the file will not have access to the server , they can edit the file which can be stored in repository.

I am using aws linux instance , below is the code from the config which we need to edit every time the changes comes in.

ProxyPass /test/ example
ProxyPassReverse /test/ example/1
ProxyHTMLURLMap example/ /test/

<location /annual/>
ProxyPassReverse /
SetOutputFilter proxy-html;SUBSTITUTE
ProxyHTMLURLMap / /test/
Substitute "s|\/test//|//|iq"
Substitute "s|url\(\'\/|url\(\'/test/|iq"
Substitute "s|url\(\/|url\(/test/|iq"
Substitute "s|url\(\"/|url\(\"/test/|iq"
</location>