请选择 进入手机版 | 继续访问电脑版

SpeedPHP框架

 找回密码
 注册成为新用户

QQ登录

只需一步,快速开始

查看: 1979|回复: 3

为什么Apache2.2开启了伪静态会无效呢?

[复制链接]
发表于 2015-9-3 21:46:16 | 显示全部楼层 |阅读模式
apache 日志
[Thu Sep 03 21:14:41 2015] [notice] Apache/2.2.22 (Win32) PHP/5.3.13 configured -- resuming normal operations
[Thu Sep 03 21:14:41 2015] [notice] Server built: Jan 28 2012 11:16:39
[Thu Sep 03 21:14:41 2015] [notice] Parent: Created child process 3612
[Thu Sep 03 21:14:41 2015] [notice] Child 3612: Child process is running
[Thu Sep 03 21:14:41 2015] [notice] Child 3612: Acquired the start mutex.
[Thu Sep 03 21:14:41 2015] [notice] Child 3612: Starting 64 worker threads.
[Thu Sep 03 21:14:41 2015] [notice] Child 3612: Starting thread to listen on port 80.
[Thu Sep 03 21:20:12 2015] [error] [client 192.168.1.226] script 'C:/amp/Apache/htdocs/main-search.html' not found or unable to stat, referer: http://192.168.1.125/index.php
[Thu Sep 03 21:20:13 2015] [error] [client 192.168.1.226] script 'C:/amp/Apache/htdocs/main-search.html' not found or unable to stat, referer: http://192.168.1.125/index.php
[Thu Sep 03 21:34:39 2015] [error] [client 192.168.1.226] script 'C:/amp/Apache/htdocs/search.html' not found or unable to stat, referer: http://192.168.1.125/index.php
[Thu Sep 03 21:34:40 2015] [error] [client 192.168.1.226] script 'C:/amp/Apache/htdocs/search.html' not found or unable to stat, referer: http://192.168.1.125/index.php
[Thu Sep 03 21:34:40 2015] [error] [client 192.168.1.226] script 'C:/amp/Apache/htdocs/search.html' not found or unable to stat, referer: http://192.168.1.125/index.php
[Thu Sep 03 21:34:42 2015] [error] [client 192.168.1.226] client denied by server configuration: C:/amp/Apache/htdocs/.htaccess
[Thu Sep 03 21:34:44 2015] [error] [client 192.168.1.226] client denied by server configuration: C:/amp/Apache/htdocs/.htaccess
[Thu Sep 03 21:34:50 2015] [notice] Parent: Received restart signal -- Restarting the server.
[Thu Sep 03 21:34:50 2015] [notice] Child 3612: Exit event signaled. Child process is ending.

.htaccess

# BEGIN
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
</IfModule>
# END


设置如下
LoadModule rewrite_module modules/mod_rewrite.so

<Directory />
    Options FollowSymLinks
        AllowOverride All
        Order deny,allow
        Allow from all
</Directory>



发表于 2015-9-3 22:31:00 | 显示全部楼层
对初学者来说,自行配置windows上面的apache相对比较难。

建议使用xampp,伪静态没有任何问题。
 楼主| 发表于 2015-9-5 21:16:12 | 显示全部楼层
jake 发表于 2015-9-3 22:31
对初学者来说,自行配置windows上面的apache相对比较难。

建议使用xampp,伪静态没有任何问题。 ...

就想自己配置感觉能学习学习啊``
发表于 2015-9-6 08:44:46 | 显示全部楼层
星云无限 发表于 2015-9-5 21:16
就想自己配置感觉能学习学习啊``

可以百度一下 wordpress 的伪静态设置,按上面日志看来是没有生效的。
您需要登录后才可以回帖 登录 | 注册成为新用户

本版积分规则

手机浏览|简版|中文PHP框架|开源协议|SpeedPHP.com ( 粤ICP备08008671号

GMT+8, 2019-12-13 17:52

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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