日志设定
错误日志:ErrorLog logs/error_log
相对路径,相对于/etc/httpd而言的
日志级别:LogLevel warn
debug, info, notice, warn, error, crit,
alert, emerg.
访问日志:
CustomLog logs/access_log combined
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
路径别名
DocumentRoot "/www/htdocs"
-->/www/htdocs/download/
bash-4.4.2-3.el6.x86_64.rpm
Alias /URL/ "/PATH/TO/SOMEDIR/"
Alias /bbs/ "/forum/bbs/htdocs/
-->
/forum/bbs/htdocs/index.html
Note:前面路径最后有/,后面的路径最后也要有/
修改后重新加载 service httpd reload即可
设置默认字符集
AddDefaultCharset UTF-8
GBK,GB2312,GB18030
基于用户的访问控制