【问题标题】:Apache configuration "The page isn't redirecting properly"Apache 配置“页面未正确重定向”
【发布时间】:2015-02-12 07:41:11
【问题描述】:

我有一个 zend 项目。它以前工作过,源代码没有任何变化。当它工作时,它是手动安装的 apache 2.2 , php 5.3 。之后,我安装了 xampp,但 apache 在我发布的每个帖子上都显示错误(有时它会发出双重帖子)。我决定安装 apache 2.2 和 php 5.4,但现在它向我显示“页面未正确重定向”。 我的 apache 配置(我更改的行): httpd.conf:

LoadModule php5_module "c:/Apache2.2/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
PHPIniDir "c:/Apache2.2/PHP"

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

LoadModule rewrite_module modules/mod_rewrite.so

<Directory "C:/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 all

</Directory>

httpd-vhosts:

    <VirtualHost *:80>
    ServerAdmin webmaster@rma.com        
    DocumentRoot "C:\Apache2.2\htdocs\rma\public"
    ServerName rma.com
    ErrorLog "logs/rma-error.log"
    CustomLog "logs/rma-access.log" common
    SetEnv APPLICATION_ENV "development"
    <Directory C:\Apache2.2\htdocs\rma\public>
 Options Indexes MultiViews FollowSymLinks
        DirectoryIndex index.php index.html
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    </VirtualHost>

php.ini

[APC]
extension=php_apc.dll
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 64M
apc.max_file_size = 10M
apc.stat=1

extension_dir = "C:\Apache2.2\PHP\ext"

我做错了什么?源代码及其在 xampp 和 wamp 中的工作方式没有任何变化?谢谢!

【问题讨论】:

  • 我仍然坚持这一点。

标签: php apache zend-framework


【解决方案1】:

原来php 5.4的apc有些问题。现在我正在使用 xcache。希望这对某人有所帮助。

【讨论】:

    猜你喜欢
    • 2017-01-18
    • 2011-08-11
    • 2018-06-08
    • 2013-06-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-28
    • 1970-01-01
    相关资源
    最近更新 更多