Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

求助服务器 .htaccess的问题

[复制链接]
三年 发表于 2008-12-5 14:23:07 | 显示全部楼层 |阅读模式
我服务器是centos5.2
安装了ispconfig3.0.0.7的主机管理系统
新建了个虚拟主机    安装上DZ   上传.htaccess  后就显示  403错误   

Forbidden
You don't have permission to access /index.html on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.



但是 单独测试  .htaccess  是能使用的   
我单独测试步骤是   
新建一个 index.shtml文档
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=GB2312">
  4. <title>Hello,World!</title>
  5. <body>
  6. The name of the file is <!--#echo var="DOCUMENT_NAME" -->
  7. </body>
  8. </html>
复制代码
访问  显示  Forbidden
然后建立  .htaccess
  1. DirectoryIndex index.shtml
复制代码
显示
The name of the file is index.shtml

那说明 .htaccess
是可用的了  
但是 为什么DZ 伪静态 出错呢
望指点
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-10-16 23:11 , Processed in 0.098594 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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