apache2-启用和禁用站点

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache2-启用和禁用站点相关的知识,希望对你有一定的参考价值。

enable and disable sites and modules in apache 2
  1. # enable site
  2. sudo a2ensite
  3.  
  4. # disable site
  5. sudo a2dissite
  6.  
  7. # enable an apache2 module
  8. sudo a2enmod
  9.  
  10. # e.g. a2enmod php4 will create the correct symlinks in mods-enabled to allow the module to be used. In this example it will link both php4.conf and php4.load for the user
  11.  
  12. # disable an apache2 module
  13. sudo a2dismod
  14.  
  15. # force reload the server:
  16. sudo /etc/init.d/apache2 force-reload

以上是关于apache2-启用和禁用站点的主要内容,如果未能解决你的问题,请参考以下文章

启用和禁用站点

从片段中禁用导航抽屉

根据活动(即可见)片段以编程方式启用或禁用按钮

禁用 ssl/https 重定向 apache2

启用目录浏览 apache2 - Ubuntu

Apache2:启用的虚拟主机目录未加载,而是获取默认页面