apache配置文件http.conf详解
默认在conf/http.conf配置文件中ServerRoot "/apache1" //服务路径,根目录
Listen 80 //端口
//IfModule指引用的模块,!指除了什么什么之外
User daemon
Group daemon
ServerAdmin you@example.com //管理员邮件
ServerName10.10.168.161:80 //域名
DocumentRoot "/apache1/htdocs"//网页主目录
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.html
Order allow,deny
Deny from all
Satisfy All
ErrorLog "logs/error_log"
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
CustomLog "logs/access_log" common
ScriptAlias /cgi-bin/ "/apache1/cgi-bin/"
AllowOverride None
Options None
Order allow,deny
Allow from all
DefaultType text/plain
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
Include conf/extra/httpd-vhosts.conf//引用虚拟主机
页:
[1]