由 const 在 11-10-2003 16:10 发表:
httpd.conf请教
/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)
加咱qq:51021899
除了侬在线时,俺不在外
其余时间偶都在线
CEII:700
SDR:128
i815E
EMC:15'
RH9+WIN2K_ADV
由 Steve3d 在 11-10-2003 23:38 发表:
404:DirectoryIndex 加上你要的首页文件名
乱码:把一行AddDefaultChar前面加上#注掉。
由 const 在 11-11-2003 08:19 发表:
DirectoryIndex index.html index.htm