1)“官方”方式是使用custombuild自定义目录方法:
cd /usr/local/directadmin/custombuild
mkdir -p custom/ap2
cp -Rp configure/ap2/conf custom/ap2
./build rewrite_confs
从custombuild目录。2)如果您只需要向系统添加额外的Apache配置代码,但不需要删除任何现有代码,最好的方法是将更改添加到:
/etc/httpd/conf/extra/httpd-includes.conf
因为这个文件不会被CustomBuild或DirectAdmin触及。 如果它不存在,DA会“触摸”它以使其存在,但是添加的任何更改都可以安全地避免任何外部更改。3)最简单的方法是运行:
chattr +i /etc/httpd/conf/httpd.conf
chattr -i /etc/httpd/conf/httpd.conf
以便在需要时再次进行更改。 完成后不要忘记再次锁定它。







