gpt4 book ai didi

zend-framework - Zend .htaccess 配置在 Ubuntu 中不起作用

转载 作者:行者123 更新时间:2023-12-04 04:29:03 25 4
gpt4 key购买 nike

嗨,我正在运行 Ubuntu 10.04 LTS - Lucid Lynx
我创建一个项目

zf 创建项目测试

此命令会自动生成一个不起作用的 .htaccess 文件
我通过编辑配置了我的网络服务器(Apache2)
/etc/apache2/sites-available/默认文件
环境

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

我收到以下错误
Internal Server Error
/**************************************************************************************/
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@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.
Apache/2.2.14 (Ubuntu) Server at localhost Port 80
/****************************************************************************************/

请帮我

最佳答案

你还没有加载 mod_rewrite,所以 Apache 不知道 RewriteEngine 行是什么意思。

在 ubuntu 上,您可能可以这样做(作为 super 用户):

a2enmod rewrite
apache2ctl restart

否则,您将不得不编辑 apache 配置并添加这样的行来加载模块
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

您系统上的路径可能不同。

关于zend-framework - Zend .htaccess 配置在 Ubuntu 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3967773/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com