+ -
当前位置:首页 → 问答吧 → 我的APACHE怎样设置?

我的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 编辑 ]

作者: AK47   发布时间: 2007-12-09

<IfModule dir_module>
    DirectoryIndex  index.php index.html
</IfModule>

作者: chaizhiyong   发布时间: 2007-12-10

谢谢你:)

作者: AK47   发布时间: 2007-12-10

参考:
http://www.phpchina.com/bbs/thread-44557-1-1.html

作者: luzhou   发布时间: 2007-12-10

热门下载

更多