江西九江永修网站建设,做百度推广网站多少钱,免费网站空间怎么办,填写网站信息在我本机配置时间不长#xff0c;不过花了好长的时间写了份配置文档#xff0c;和大家分享一下#xff0c;希望对大家有用LINUX发行版本#xff1a;Fedora 14 , Apache .2.2安装就不说了!依然采用rpm包安装方式 #xff0c;下面进入正题#xff1a;httpd.conf配置文件介绍…在我本机配置时间不长不过花了好长的时间写了份配置文档和大家分享一下希望对大家有用LINUX发行版本Fedora 14 , Apache .2.2安装就不说了!依然采用rpm包安装方式 下面进入正题httpd.conf配置文件介绍1、与Apache网络和系统相关的选项#使用ServerRoot参数设置Apache安装目录# ServerRoot: The top of the directory tree under which the servers# configuraTIon, error, and log files are kept.# you will save yourself a lot of trouble.# Do NOT add a slash at the end of the directory path.#ServerRoot /etc/httpd#使用Listen参数设置Apache监听端口,Apache默认是80Listen 80#使用User参数设置Apache进程的执行者User apache#使用Group参数设置Apache进程执行者所属的用户组Group apache#使用ServerAdmin参数设置网站管理员的邮箱地址2、与Apache文件和目录权限相关选项#使用DocumentRoot参数设置网站根目录# DocumentRoot: The directory out of which you will serve your# documents. By default, all requests are taken from this directory, but# symbolic links and aliases may be used to point to other locaTIons.#DocumentRoot /var/www/html#使用Directory段设置根目录权限OpTIons FollowSymLinksAllowOverride None#使用Directory段设置/var/www/html目录权限OpTIons Indexes FollowSymLinksAllowOverride NoneOrder allow,denyAllow from all#设置首页为index.htmlDirectoryIndex index.html index.html.var#.ht后缀文件的访问权限控制与上目录的AllowOverride一起作用# The following lines prevent .htaccess and .htpasswd files from being# viewed by Web clients.#Order allow,denyDeny from allSatisfy All3、与Apache日志相关的选项如下#使用ErrorLog参数设置错误日志的位置# ErrorLog: The location of the error log file.# If you do not specify an ErrorLog directive within a# container, error messages relating to that virtual host will be# logged here. If you *do* define an error logfile for a# container, that hosts errors will be logged there and not here.#ErrorLog logs/error_log#使用LogLevel参数设置错误日志的级别# LogLevel: Control the number of messages logged to the error_log.# Possible values include: debug, info, notice, warn, error, crit,# alert, emerg.#LogLevel warn#使用LogFormat参数设置访问日志的格式模板# The following directives define some format nicknames for use with# a CustomLog directive (see below).#LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ combinedLogFormat %h %l %u %t \%r\ %s %b commonLogFormat %{Referer}i - %U refererLogFormat %{User-agent}i agent#使用CustomLog参数设置访问日志的格式模板# For a single logfile with access, agent, and referer information# (Combined Logfile Format), use the following directive:#CustomLog logs/access_log combined