Hi
You seem to know centos, but you have some lack on neth server, therefore you should take a look to the developer or the administrator manual to understand the e-smith layer
Some reading more Explaining e-smith layer - learning by doing
http://docs.nethserver.org/projects/nethserver-devel/en/latest/databases.html
You have also a little howto i did sometime ago http://wiki.nethserver.org/doku.php?id=howto:db_command_tutorial
In fact neth keeps some variables in its database and uses them to write a configuration file like the http.conf…so you cannot overwritten it like you found yourself.
The best…or the easy you can do here is to drop a file in /etc/httpd/conf.d/ with the configuration needed.
Not tested since i write this on my smartphone, but it should work.