Apache Optimized configuration Detailed

Source: Internet
Author: User
Tags md5 digest

Tag: Owner causes management serve exp multithreaded Group Request header issue

###=========httpd.conf begin===================
# #Apache主配置文件
# #设置服务器的基础目录, default to Apache installation directory
ServerRoot "/usr/local/apache-2.2.6"
# #设置服务器监听的IP和端口
Listen 80
# #设置管理员邮件地址

# #设置服务器用于辨识自己的主机名和端口号
ServerName www.uenu.com:80
# # #设置动态加载的DSO模块
# #如果需要提供基于文本文件的认证, load this module, otherwise comment out
LoadModule authn_file_module modules/mod_authn_file.so
# #如果需要提供基于DBM文件的认证, load this module, otherwise comment out
#LoadModule Authn_dbm_module modules/mod_authn_dbm.so
# #如果需要提供匿名用户认证, load this module, otherwise comment out
#LoadModule Authn_anon_module modules/mod_authn_anon.so
# #如果需要提供基于SQL数据库的认证, load this module, otherwise comment out
#LoadModule Authn_dbd_module modules/mod_authn_dbd.so
# #如果需要在未正确配置认证模块的情况下简单拒绝一切认证信息, load this module, otherwise comment out
LoadModule Authn_default_module modules/mod_authn_default.so
# #此模块提供基于主机名, IP address, request feature access control, allow, deny command required, recommended loading.
LoadModule Authz_host_module modules/mod_authz_host.so
# #如果需要使用纯文本文件为组提供授权支持, load this module, otherwise comment out
#LoadModule Authz_groupfile_module modules/mod_authz_groupfile.so
# #如果需要提供基于每个用户的授权支持, load this module, otherwise comment out
LoadModule Authz_user_module modules/mod_authz_user.so
# #如果需要使用DBM文件为组提供授权支持, load this module, otherwise comment out
#LoadModule Authz_dbm_module modules/mod_authz_dbm.so
# #如果需要基于文件的所有者进行授权, load this module, otherwise comment out
#LoadModule Authz_owner_module modules/mod_authz_owner.so
# #如果需要在未正确配置授权支持模块的情况下简单拒绝一切授权请求, load this module, otherwise comment out
LoadModule Authz_default_module modules/mod_authz_default.so
# #如果需要提供基本的HTTP认证, load this module, otherwise commented out, this module needs to load at least one authentication support module and one authorized support module at the same time
LoadModule Auth_basic_module modules/mod_auth_basic.so
# #如果需要提供HTTP MD5 Digest authentication, load this module, otherwise commented out, this module needs to load at least one authentication support module and one authorized support module at the same time
#LoadModule Auth_digest_module modules/mod_auth_digest.so
# #此模块提供文件描述符缓存支持, which improves Apache performance and is recommended for loading, but be careful to use
LoadModule File_cache_module modules/mod_file_cache.so
# #此模块提供基于URI键的内容动态缓存 (memory or disk), which improves Apache performance and must be used in conjunction with Mod_disk_cache/mod_mem_cache, it is recommended to load
LoadModule Cache_module modules/mod_cache.so
# #此模块为mod_cache提供基于磁盘的缓存管理, recommended loading
LoadModule Disk_cache_module modules/mod_disk_cache.so
# #此模块为mod_cache提供基于内存的缓存管理, recommended loading
LoadModule Mem_cache_module modules/mod_mem_cache.so
# #如果需要管理SQL数据库连接, provide support for modules that require database functionality, load this module, otherwise comment out (recommended)
#LoadModule Dbd_module modules/mod_dbd.so
# #此模块将所有I/O operations dump into the error log, which results in a large amount of data being written in the log and is recommended only when problems are discovered and debugging is used
#LoadModule Dumpio_module modules/mod_dumpio.so
# #如果需要使用外部程序作为过滤器, load this module (not recommended), otherwise comment out
#LoadModule Ext_filter_module modules/mod_ext_filter.so
# #如果需要实现服务端包含文档 (SSI) processing, loading this module (not recommended), otherwise commented out
#LoadModule Include_module modules/mod_include.so
# #如果需要根据上下文实际情况对输出过滤器进行动态配置, load this module, otherwise comment out
LoadModule Filter_module modules/mod_filter.so
# #如果需要服务器在将输出内容发送到客户端以前进行压缩以节约带宽, load this module (recommended), otherwise comment out
LoadModule Deflate_module modules/mod_deflate.so
# #如果需要记录日志和定制日志文件格式, load this module (recommended), otherwise comment out
LoadModule Log_config_module modules/mod_log_config.so
# #如果需要对每个请求的输入/Output bytes and HTTP headers are logged, load this module, otherwise comment out
#LoadModule Logio_module modules/mod_logio.so
# #如果允许Apache修改或清除传送到CGI脚本和SSI页面的环境变量, load this module, otherwise comment out
LoadModule Env_module modules/mod_env.so
# #如果允许通过配置文件控制HTTP的 "Expires:" and "Cache-control:" header content, load this module (recommended), otherwise comment out
LoadModule Expires_module modules/mod_expires.so
# #如果允许通过配置文件控制任意的HTTP请求和应答头信息, load this module, otherwise comment out
LoadModule Headers_module modules/mod_headers.so
# #如果需要实现RFC1413规定的ident查找, load this module (not recommended), otherwise comment out
#LoadModule Ident_module modules/mod_ident.so
# #如果需要根据客户端请求头字段设置环境变量, load this module, otherwise comment out
LoadModule Setenvif_module modules/mod_setenvif.so
# #此模块是mod_proxy的扩展, provide Apache Jserv protocol support, load only when necessary
#LoadModule Proxy_ajp_module modules/mod_proxy_ajp.so
# #此模块是mod_proxy的扩展, provide load balancing support, load only when necessary
#LoadModule Proxy_balancer_module modules/mod_proxy_balancer.so
# #如果需要根据文件扩展名决定应答的行为 (processor/filter) and content (MIME type/language/character set/encoding), load this module, otherwise comment out
LoadModule Mime_module modules/mod_mime.so
# #如果允许Apache提供DAV协议支持, load this module, otherwise comment out
#LoadModule Dav_module modules/mod_dav.so
# #此模块生成描述服务器状态的Web页面, only recommended to load when tracking server performance and issues
#LoadModule Status_module modules/mod_status.so
# #如果需要自动对目录中的内容生成列表 (similar to "ls" or "dir" command), load this module (will bring security issues, not recommended), otherwise comment out
#LoadModule Autoindex_module modules/mod_autoindex.so
# #如果需要服务器发送自己包含HTTP头内容的文件, load this module, otherwise comment out
#LoadModule Asis_module modules/mod_asis.so
# #如果需要生成Apache配置情况的Web页面, load this module (will bring security issues, not recommended), otherwise comment out
#LoadModule Info_module modules/mod_info.so
# #如果需要在非线程型MPM (prefork) provide support for CGI script execution, load this module, otherwise comment out
#LoadModule Cgi_module modules/mod_cgi.so
# #此模块在线程型MPM (worker) with an external CGI daemon to execute CGI scripts, if you are using a CGI program in multithreaded mode, it is recommended to replace mod_cgi load, otherwise commented out
#LoadModule Cgid_module modules/mod_cgid.so
# #此模块为mod_dav访问服务器上的文件系统提供支持, if you load Mod_dav, you should also load this module, otherwise comment out
#LoadModule Dav_fs_module modules/mod_dav_fs.so
# #如果需要提供大批量虚拟主机的动态配置支持, load this module, otherwise comment out
#LoadModule Vhost_alias_module modules/mod_vhost_alias.so
# #如果需要提供内容协商支持 (Select a document that best matches client requirements from several valid documents), load this module (recommended), otherwise comment out
LoadModule Negotiation_module modules/mod_negotiation.so
# #如果需要指定目录索引文件以及为目录提供 "Trailing slash" redirect, load this module (recommended), otherwise comment out
LoadModule Dir_module modules/mod_dir.so
# #如果需要处理服务器端图像映射, load this module, otherwise comment out
#LoadModule Imagemap_module modules/mod_imagemap.so
# #如果需要针对特定的媒体类型或请求方法执行CGI脚本, load this module, otherwise comment out
#LoadModule Actions_module modules/mod_actions.so
# #如果希望服务器自动纠正URL中的拼写错误, load this module (recommended), otherwise comment out
LoadModule Speling_module modules/mod_speling.so
# #如果允许在URL中通过 "/~username" form provides a page from the user's own home directory, load this module, otherwise comment out
#LoadModule Userdir_module modules/mod_userdir.so
# #此模块提供从文件系统的不同部分到文档树的映射和URL重定向, recommended loading
LoadModule Alias_module modules/mod_alias.so
# #如果需要基于一定规则实时重写URL请求, load this module (recommended), otherwise comment out
LoadModule rewrite_module modules/mod_rewrite.so

Apache Optimized configuration Detailed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.