好久不使用127.0.0.1打开了,结果发现不能打开了
php吧
全部回复
仅看楼主
level 7
以前都是使用的localhost,结果今天使用一下127.0.0.1,
查看一下http.conf
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Allow from 127.0.0.1
</Directory>
<Directory "D:/myweb/apache2.2/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from 127.0.0.1
</Directory>
没发现什么问题?
2014年05月18日 03点05分 1
level 13
你直接把网页的名称打上试试。出现这种情况可能是你的默认主页没设好。
2014年05月18日 03点05分 2
localhost 可以使用的,但是就是使用127.0.0.1就出现404错误,还想求一下你的httpd.conf文件下面的<Directory />看一下呢
2014年05月18日 03点05分
回复 风飘叶落927 :我这台电脑没装。你的DirectoryIndex 怎么设的,这是设默认主页的,你的上边没有
2014年05月18日 03点05分
回复 onlywchao :DirectoryInde 一般我在vhost上面设置,在httpd.conf没有设,这个没有影响吧...
2014年05月18日 03点05分
回复 风飘叶落927 :你还是直接在地址栏中输入上完整的网址试试。如果还出现404,那就是apache设置有问题。如果能正常访问,那就是默认主页的事
2014年05月18日 04点05分
1