LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 842|回复: 2

[help] apache 自动索引页 问题!

[复制链接]
发表于 2006-10-30 18:25:38 | 显示全部楼层 |阅读模式

  1. <VirtualHost 192.168.3.5:80>
  2.      DocumentRoot /var/html/
  3.     ServerName www.test.com
  4.     ErrorLog /var/log/httpd/www.test.com-error_log
  5.     CustomLog /var/log/httpd/www.test.com-access_log common

  6.         <Directory />
  7.         Options Indexes FollowSymLinks
  8.         AllowOverride None
  9.         Order deny,allow
  10.         allow from all
  11.         </Directory>

  12.         Alias /soft/ /home/share/
  13.         <Directory /home/share/>
  14.        [color=yellow] Options[/color] [color=bule] Indexes[/color]
  15.         Order deny,allow
  16.         allow from all
  17.         </Directory>
  18. </VirtualHost>
复制代码

求助[1] 本机的locale 是zh_CN.utf8 其他的页面都可以正常显示,只有目录索引的时候显示中文乱码,可以在浏览器的编码中看到 浏览器自动选中 GB2312,手动选择UTF8 可以正常显示。如何才能自动让浏览器选择UTF8。
求助[2] 自动生成的索引页中的 属性列 都是英文提示,要修改那个文件才能让它变成中文,显示如图。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2006-10-30 19:48:18 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2006-10-31 10:18:26 | 显示全部楼层
对你可以在HEADER.html 中加入charset
就像这样
[php]<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />[/php]
或者设置apache的DefaultLanguage off
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表