本文介绍了'sites-enabled' 和 'sites-available' 目录有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

这两个目录在 Apache 2 中有什么用,我们该怎么做?

What is use of these two directories in Apache 2 and how can we do it?

推荐答案

区别在于 sites-enabled 目录中列出的虚拟站点由 Apache 提供服务.在 sites-available 目录中,您的服务器上存在虚拟站点,但人们无法访问它们,因为它们尚未启用.

The difference is that virtual sites listed in the sites-enabled directory are served by Apache. In the sites-available directory there are the virtual sites that exist on your server, but people can't access them because they are not enabled yet.

sites-available:此目录包含 Apache 2 虚拟主机的配置文件.虚拟主机允许配置 Apache 2多个具有单独配置的站点.

sites-enabled:与 mods-enabled 一样,sites-enabled 包含指向/etc/apache2/sites-available 目录.类似地,当一个站点可用中的配置文件是符号链接的,站点Apache2 重新启动后,由它配置的将处于活动状态.

sites-enabled: like mods-enabled, sites-enabled contains symlinks tothe /etc/apache2/sites-available directory. Similarly when aconfiguration file in sites-available is symlinked, the siteconfigured by it will be active once Apache2 is restarted.

参见https://help.ubuntu.com/lts/serverguide/httpd.html.

这篇关于'sites-enabled' 和 'sites-available' 目录有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 04:09