是什么使网站和网站可用目录之间的区别? [英] What is the difference between sites-enabled and sites-available directory?
问题描述
什么是利用Apache2的这两个目录中,我们该怎么办呢?
What is use of these two directories in apache2 and how can we do it?
推荐答案
不同的是,在上市virual站点启用站点 -
目录是由Apache的服务。在站点可用
有一些存在于您的服务器上,但人不能访问他们,因为他们不是虚拟站点启用呢。
The difference is that virual sites listed in sites-enabled
directory are served by apache. In sites-available
there are the virtual sites that exist on your server but people can't access them because they are not enabled yet.
站点可用:这个目录有Apache2的虚拟主机配置文件。虚拟主机允许的Apache2被配置为
多个站点有不同的配置。
sites-available: this directory has configuration files for Apache2 Virtual Hosts. Virtual Hosts allow Apache2 to be configured for multiple sites that have separate configurations.
站点启用:像MODS启用,启用站点,包含符号链接
在/ etc / apache2的/网站可用目录即可。同样,当一个
在网站可用的配置文件被链接,该网站
一旦Apache2的重新启动将其配置将被激活。
sites-enabled: like mods-enabled, sites-enabled contains symlinks to the /etc/apache2/sites-available directory. Similarly when a configuration file in sites-available is symlinked, the site configured by it will be active once Apache2 is restarted.
在这里看到<一个href=\"https://help.ubuntu.com/lts/serverguide/httpd.html\">https://help.ubuntu.com/lts/serverguide/httpd.html
这篇关于是什么使网站和网站可用目录之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!