标题: ZF项目放到linux上,无法访问action
dev_yjw
新手上路
Rank: 1



UID 2104
精华 0
积分 0
帖子 14
翻译 0
原创 0
阅读权限 10
注册 2008-9-16
状态 离线
发表于 2008-10-23 10:15  资料  短消息  加为好友 
ZF项目放到linux上,无法访问action

如题,有遇到类似问题的请指点一下!!!
十分感谢!!!

顶部
haohappy
超级版主
Rank: 8Rank: 8
PHPEye站长


UID 2
精华 11
积分 110
帖子 285
翻译 6
原创 1
阅读权限 150
注册 2007-5-2
状态 离线
发表于 2008-10-23 10:46  资料  短消息  加为好友  添加 haohappy 为MSN好友 通过MSN和 haohappy 交谈
检查一下apache 的url_rewrite有没有设置正确。





互助共享,共同成长。
顶部
dev_yjw
新手上路
Rank: 1



UID 2104
精华 0
积分 0
帖子 14
翻译 0
原创 0
阅读权限 10
注册 2008-9-16
状态 离线
发表于 2008-10-23 14:57  资料  短消息  加为好友 
我的设置是这样的

<Directory />
    Options FollowSymLinks
    AllowOverride All
    #XAMPP
    #Order deny,allow
    #Deny from all
</Directory>

<Directory "/opt/lampp/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
    # XAMPP
    Options Indexes FollowSymLinks ExecCGI Includes


    #
    # 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 None
    # since XAMPP 1.4:
    AllowOverride All


    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

顶部
dev_yjw
新手上路
Rank: 1



UID 2104
精华 0
积分 0
帖子 14
翻译 0
原创 0
阅读权限 10
注册 2008-9-16
状态 离线
发表于 2008-10-23 15:06  资料  短消息  加为好友 
老访问IndexController,url地址发生改变


顶部
haohappy
超级版主
Rank: 8Rank: 8
PHPEye站长


UID 2
精华 11
积分 110
帖子 285
翻译 6
原创 1
阅读权限 150
注册 2007-5-2
状态 离线
发表于 2008-10-24 09:20  资料  短消息  加为好友  添加 haohappy 为MSN好友 通过MSN和 haohappy 交谈


QUOTE:
原帖由 dev_yjw 于 2008-10-23 15:06 发表

我说的是url_rewrite,把你的url重写规则贴上来看看。





互助共享,共同成长。
顶部
 


PHPEye开源社区


当前时区 GMT+8, 现在时间是 2009-1-10 04:49

    Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.623497 second(s), 6 queries , Gzip enabled

清除 Cookies - 联系我们 - PHPEye开源社区 - Archiver