虚拟域名不能访问

早上遇到个问题,打开本地虚拟域名,访问报错。开始的时候报错是,地址不存在。后面发现是因为丢了.htaccess文件(用的是TP框架),加上这个文件,内容如下
<IfModule mod_rewrite.c>
  Options +FollowSymlinks
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-d
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>

于是乎报错又变成了另外一个,


<span style="color:#FF0000;">Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.</span>

错误日志记录信息为:

[Thu Jul 02 14:51:13.645011 2015] [:error] [pid 11696:tid 876] [client 127.0.0.1:60553] script 'D:/www/zintao/backend/branches/dev/Application/index.php' not found or unable to stat
翻译:请求超过了10个内部重定向的限制,由于可能的配置错误。使用'LimitInternalRecursion'如果需要增加限。

度娘解决方法,出来的办法大多是修改配置文件,将
LoadModule rewrite_module modules/mod_rewrite.so
前面的注释#号去掉,或者是修改apache项目根目录的重写权限为ALL,但是如上的办法并 没有解决我的问题,这些基本的配置早就弄好了,而且之前项目访问是没有问题的。后来才发现,项目有用到memcached,而memcached没有开启,找到memcached.exe后双击运行开启,再次打开虚拟域名,问题解决。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值