badzilla

Member
Mar 3, 2008
19
0
51
Okay, I got a weird problem.

I want to control the httpd.conf, so I created a main.local with the following snippet

Code:
<Directory />
  Order Deny,Allow
  Deny from all
  AllowOverride None
  Options None
</Directory>
but on every daily automatic update it changes to

Code:
<Directory />
  AllowOverride all
  Options all
</Directory>
If I log in to the shell and run

Code:
/usr/local/cpanel/bin/build_apache_conf
the httpd.conf is once again build correctly with the directory-settings I want.

So what is going on. I'm not extremely happy about this, and would like to know why this is happening.

Regards,
Michael
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
Thanks for the report. I can duplicate this behavior on the latest published CURRENT and am filing a report with the developers for the matter to be addressed.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
1. echo "/scripts/rebuildhttpdconf" >> /scripts/postupcp
2. chmod +x /scripts/postupcp

The above is a work around. At the end of upcp, httpd.conf will be rebuilt to restore your Directory block.