directadmin

如果您想为一个域禁用/ webmail(例如),一种方法是将Aliases更改为VirtualHosts而不是1个全局别名。 为此,我们需要使用virtual_host2.conf模板(用于apache 2)并使用Admin Level中的自定义httpd配

将Apache更新到最新版本

来源:梦飞科技 作者:梦飞 浏览量:156 更新:2018-05-14
你可以通过运行来检查Apache的当前版本

/usr/sbin/httpd -v





CustomBuild - 当前

如果您正在使用custombuild(因为大多数新盒子都是),请运行以下命令

cd /usr/local/directadmin/custombuild
./build update
./build apache
./build php n
./build rewrite_confs





CustomApache
 
如果您最近使用的是带有1.3版apache的customapache,请运行以下命令:

cd /usr/local/directadmin/customapache
./build clean
./build update
./build apache_mod_ssl

如果您使用的是Apache 2.x,请使用“./build apache_2”而不是apache_mod_ssl。
这应该将配置选项和apache的版本更新为最新版本。 更新完成后,您需要重新启动apache:

RedHat:

/sbin/service httpd restart


FreeBSD:

/usr/local/etc/rc.d/httpd restart

 

部分文章来源与网络,若有侵权请联系站长删除!