apche:httpd.conf
1. PHP安装路径ServerRoot "C:/www/apache2"
2.#Listen 12.34.56.78:80监听端口,只允许这个IP地址访问
3.LoadModule php5_module "c:/www/php5.4/php5apache2_2.dll"载入PHP组件
4.DocumentRoot "C:/www/apache2/htdocs"默认文件夹
5.<Directory "C:/www/apache2/htdocs">权限文件夹
6.DirectoryIndex index.html默认访问文件
7.ErrorLog "logs/error.log"错误日志
8.CustomLog "logs/access.log" common访问日志
PHP解析:
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php解析PHP文件
PHPIniDir "C:/www/PHP5.4"
错误配置:
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.my.com/subscription_info.html
#