个人工具

“沙盒”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第3行: 第3行:
  
 
: Apache2是一个模块化的服务器。这意味着只有最基本的功能被纳入核心服务器。其他扩展的功能则是通过模块载入Apache2的。缺省情况下,服务器编译时只包含了一套基本的模块。如果服务器被编译为使用模块的动态装载,那么模块可以单独地被编译,并且可以通过''LoadModule''指令随时添加模块。否则,Apache2在添加和移除模块时必须被编译。  
 
: Apache2是一个模块化的服务器。这意味着只有最基本的功能被纳入核心服务器。其他扩展的功能则是通过模块载入Apache2的。缺省情况下,服务器编译时只包含了一套基本的模块。如果服务器被编译为使用模块的动态装载,那么模块可以单独地被编译,并且可以通过''LoadModule''指令随时添加模块。否则,Apache2在添加和移除模块时必须被编译。  
: Ubuntu compiles Apache2 to allow the dynamic loading of modules. Configuration directives may be conditionally included on the presence of a particular module by enclosing them in an ''<IfModule>'' block.
+
: Ubuntu编译Apache2允许模块的动态装载。Configuration directives may be conditionally included on the presence of a particular module by enclosing them in an ''<IfModule>'' block.
 
: You can install additional Apache2 modules and use them with your Web server. For example, run the following command from a terminal prompt to install the ''MySQL'' Authentication module:<br/><code style="background-color:lightgray">sudo apt-get install libapache2-mod-auth-mysql</code>
 
: You can install additional Apache2 modules and use them with your Web server. For example, run the following command from a terminal prompt to install the ''MySQL'' Authentication module:<br/><code style="background-color:lightgray">sudo apt-get install libapache2-mod-auth-mysql</code>
 
: See the /etc/apache2/mods-available directory, for additional modules.  
 
: See the /etc/apache2/mods-available directory, for additional modules.  
 
: Use the a2enmod utility to enable a module:<br/><code style="background-color:lightgray">sudo a2enmod auth_mysql</code><br/><code style="background-color:lightgray">sudo service apache2 restart</code>
 
: Use the a2enmod utility to enable a module:<br/><code style="background-color:lightgray">sudo a2enmod auth_mysql</code><br/><code style="background-color:lightgray">sudo service apache2 restart</code>
 
: Similarly, a2dismod will disable a module: <br/><code style="background-color:lightgray">sudo a2dismod auth_mysql</code><br/><code style="background-color:lightgray">sudo service apache2 restart</code>
 
: Similarly, a2dismod will disable a module: <br/><code style="background-color:lightgray">sudo a2dismod auth_mysql</code><br/><code style="background-color:lightgray">sudo service apache2 restart</code>

2016年6月8日 (三) 11:09的版本

Apache2模块

Apache2是一个模块化的服务器。这意味着只有最基本的功能被纳入核心服务器。其他扩展的功能则是通过模块载入Apache2的。缺省情况下,服务器编译时只包含了一套基本的模块。如果服务器被编译为使用模块的动态装载,那么模块可以单独地被编译,并且可以通过LoadModule指令随时添加模块。否则,Apache2在添加和移除模块时必须被编译。
Ubuntu编译Apache2允许模块的动态装载。Configuration directives may be conditionally included on the presence of a particular module by enclosing them in an <IfModule> block.
You can install additional Apache2 modules and use them with your Web server. For example, run the following command from a terminal prompt to install the MySQL Authentication module:
sudo apt-get install libapache2-mod-auth-mysql
See the /etc/apache2/mods-available directory, for additional modules.
Use the a2enmod utility to enable a module:
sudo a2enmod auth_mysql
sudo service apache2 restart
Similarly, a2dismod will disable a module:
sudo a2dismod auth_mysql
sudo service apache2 restart