正在加载图片...
LoadModule disk cache module modules/mod disk cache.so LoadModule mem cache module modules/mod mem cache. so LoadModule cgi module modules/mod cgi.so LoadModule version module modules/mod version. so #Loadconfigfilesfromtheconfigdirectory"/etc/httpd/conf.d Include conf d/%.c # Apache服务器可以通过特殊的HTP请求,来报告自身的运行状态,打开这个 Extendedstatu参数 #可以让服务器报告更全面的运行状态信息 ExtendedStatus On #设置运行 Apache服务器的用户和组 User apache ##f# Section 2: Main server configuration #f The directives in this section set up the values used by the main #f server, which responds to any requests that aren,'t handled by a # <VirtualHost> definition. These values also provide defaults for any <Virtual Host> containers you may define later in the file #f All of these directives may appear inside <VirtualHost> containers, #f in which case these default settings will be overridden for the virtual host being defined Server Admin rootalocalhost ∥设置 Apache服务器管理员的Ema地址 #缺省情况下,并不需要指定这个 Servername参数,服务器将自动通过名字解析过程来获得自己的名字, #但如果服务器的名字解析有问题(通常为反向解析不正确),或者没有正式的DNS名字,也可以在这里 #指定IP地址。如果 ServerName设置不正确,服务器将不能正常启动 If your host doesn't have a registered DNS name, enter its IP address here #f You will have to access it by its address anyway, and this will make #f redirections work in a sensible way #serVernamewww.examplecom80 #若关闭此选项,当 Apache服务器需要指向本身的连接使使用 ServerName port作为主机名,例如LoadModule disk_cache_module modules/mod_disk_cache.so LoadModule file_cache_module modules/mod_file_cache.so LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule cgi_module modules/mod_cgi.so LoadModule version_module modules/mod_version.so # Load config files from the config directory "/etc/httpd/conf.d". Include conf.d/*.conf # Apache服务器可以通过特殊的HTTP请求,来报告自身的运行状态,打开这个ExtendedStatus 参数 #可以让服务器报告更全面的运行状态信息 #ExtendedStatus On #设置运行Apache服务器的用户和组 User apache Group apache ### Section 2: 'Main' server configuration # # The directives in this section set up the values used by the 'main' # server, which responds to any requests that aren't handled by a # <VirtualHost> definition. These values also provide defaults for # any <VirtualHost> containers you may define later in the file. # # All of these directives may appear inside <VirtualHost> containers, # in which case these default settings will be overridden for the # virtual host being defined. # ServerAdmin root@localhost //设置Apache服务器管理员的E_mail地址 #缺省情况下,并不需要指定这个ServerName参数,服务器将自动通过名字解析过程来获得自己的名字, #但如果服务器的名字解析有问题(通常为反向解析不正确),或者没有正式的DNS名字,也可以在这里 #指定IP地址。如果ServerName设置不正确,服务器将不能正常启动 # If your host doesn't have a registered DNS name, enter its IP address here. # You will have to access it by its address anyway, and this will make # redirections work in a sensible way. # #ServerName www.example.com:80 #若关闭此选项,当Apache服务器需要指向本身的连接使使用ServerName:port作为主机名,例如
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有