
Originally Posted by
twhiting9275
This is getting annoying as all hell here, please, STOP modifying configuration files (httpd specifically) without any request to specifically do so, and then, only ADD the necessary values.
For the past 3 months, I've had to fight CPanel for control over the apache configuration files here. Nothing major, just something small (ie: remove /mailman/ to be PCI COMPLIANT). Every time I remove it, and restart httpd, it tests fine, yet the next week, it's right back there.
Now I know nobody's adding things to the httpd files, as I'm the only one with root access (and I haven't added any accounts, as it's a personal server). I don't know WHAT cPanel/WHM is doing to automatically add this, but it is annoying as all hell. I have my configuration files set a specific way, please show some sort of respect to your customers and KEEP them that way, instead of adding what you want whenever you want, without being asked (or told) to!
Is it a hassle? Yes. Is it a big problem? No, but come on now, respect your client's time here. I just wasted 8 hours on numerous scans to have to do them again, because you felt the need to add this unnecessary and ridiculous line to configurations! At least respect your customers enough NOT to force them to use your default garbage!
Hi,
I understand your frustrations.
Please keep in mind that cPanel doesn't do this maliciously. The simple facts are that since EA3 (Easy Apache 3) there have been several improvements created to remove direct updates to httpd.conf.
Take a read: http://www.cpanel.net/support/docs/ea/ea3/ea3.html
The documentation is long and tedious but complete and explains what is what. Essentially, you shouldn't be editing the VHosts directly anymore. You should simply edit the /var/cpanel/userdata/username/ files and using /scripts/rebuildhttpdconf. You shouldn't ever need to directly edit the file. There are a BUNCH of includes now being used to create clean, customizable and portable changes to httpd.conf.
I was in your shoes. But I see clearly now. Read the docs. I think it'll help you quite a bit. Also, notice how the httpd.conf reads:
Code:
# This configuration file was built from the following templates: #
# /var/cpanel/templates/apache2/main.default #
# /var/cpanel/templates/apache2/main.local #
# /var/cpanel/templates/apache2/vhost.default #
# /var/cpanel/templates/apache2/vhost.local #
# /var/cpanel/templates/apache2/ssl_vhost.default #
# /var/cpanel/templates/apache2/ssl_vhost.local #
You can try editing those or others indicated in the current httpd.conf to tweak your settings, then rebuild. Way better. 
Again, I know your pain. Just read the docs... they'll soothe you. Or should.
It's progress.
Warmest regards,