我的APACHE怎样设置?
时间:2007-12-10
来源:互联网
这是我的httpd.conf,我每次输入:http://localhost/时,浏览器就会显示:Index of /
index.php
index.php~
而不是我所希望的直接输出index.php,请帮我看看
[code]
154 DocumentRoot "/home/soj/www"
.......................
164 <Directory />
165 AllowOverride None
166 Order deny,allow
167 Deny from all
168 </Directory>
.................................
180 <Directory "/home/soj/www">
181 #
182 # Possible values for the Options directive are "None", "All",
183 # or any combination of:
184 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
185 #
186 # Note that "MultiViews" must be named *explicitly* --- "Options All"
187 # doesn't give it to you.
188 #
189 # The Options directive is both complicated and important. Please see
190 # http://httpd.apache.org/docs/2.2/mod/core.html#options
191 # for more information.
192 #
193 Options Indexes FollowSymLinks
194
195 #
196 # AllowOverride controls what directives may be placed in .htaccess files.
197 # It can be "All", "None", or any combination of the keywords:
198 # Options FileInfo AuthConfig Limit
199 #
200 AllowOverride None
201
202 #
203 # Controls who can get stuff from this server.
204 #
205 Order allow,deny
206 Allow from all
207
208 </Directory>
[code]
[ 本帖最后由 AK47 于 2007-12-10 19:52 编辑 ]
index.php
index.php~
而不是我所希望的直接输出index.php,请帮我看看
[code]
154 DocumentRoot "/home/soj/www"
.......................
164 <Directory />
165 AllowOverride None
166 Order deny,allow
167 Deny from all
168 </Directory>
.................................
180 <Directory "/home/soj/www">
181 #
182 # Possible values for the Options directive are "None", "All",
183 # or any combination of:
184 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
185 #
186 # Note that "MultiViews" must be named *explicitly* --- "Options All"
187 # doesn't give it to you.
188 #
189 # The Options directive is both complicated and important. Please see
190 # http://httpd.apache.org/docs/2.2/mod/core.html#options
191 # for more information.
192 #
193 Options Indexes FollowSymLinks
194
195 #
196 # AllowOverride controls what directives may be placed in .htaccess files.
197 # It can be "All", "None", or any combination of the keywords:
198 # Options FileInfo AuthConfig Limit
199 #
200 AllowOverride None
201
202 #
203 # Controls who can get stuff from this server.
204 #
205 Order allow,deny
206 Allow from all
207
208 </Directory>
[code]
[ 本帖最后由 AK47 于 2007-12-10 19:52 编辑 ]
作者: AK47 发布时间: 2007-12-09
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
DirectoryIndex index.php index.html
</IfModule>
作者: chaizhiyong 发布时间: 2007-12-10
谢谢你:)

作者: AK47 发布时间: 2007-12-10
参考:
http://www.phpchina.com/bbs/thread-44557-1-1.html
http://www.phpchina.com/bbs/thread-44557-1-1.html

作者: luzhou 发布时间: 2007-12-10
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28