|
/usr/local/apache2/conf下的httpd.conf主要几项配置如下:
ServerRoot "/usr/local/apache2"
ServerType standalone
Port 80
Listen 80
DocumentRoot "/usr/local/apache2/htdocs"
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.html index.html.var index.htm
AccessFileName .htaccess
Order allow,deny
Deny from all
TypesConfig conf/mime.types
DefaultType text/plain
LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw
ForceLanguagePriority Prefer Fallback
AddDefaultCharset GB2312
问题是1.乱码2.DocumentRoot "/usr/local/apache2/htdocs"时,必须键入index.htm否则
(只键入ip或localhost)就是出现apache的默认页即:testpage....3.不能换网站目录,改为
DocumentRoot "/web"和时(web下有index.htm文件),但提示object not found(错误404)::大虾救命啊!
每次改过httpd.conf肯定重起了httpd服务(rh9,apache-2.0.40) |
|