如何在 Amazon 的 bitnami 机器上的 ubuntu 上启用 mod_rewrtie?

发布于 2024-09-30 01:34:40 字数 372 浏览 0 评论 0原文

我在亚马逊上创建了一个 lamp bitnami 服务器。我想知道如何启用 mod_rewrite ? 这是我拥有的服务器 http://bitnami.org/stack/lampstack

我尝试安装“ sudo apt-get install apache2.2-common”,

然后运行“sudo a2enmod rewrite”,然后编辑“/etc/apache2/sites-available/default”并设置“AllowOverride all”,然后重新启动服务器。

但没有任何作用...

任何帮助将不胜感激。

I have created a lamp bitnami server on Amazon. I was wondering how to enable mod_rewrite on it?
This is the server that I have http://bitnami.org/stack/lampstack

I have tried installing "sudo apt-get install apache2.2-common"

then running "sudo a2enmod rewrite" and then editing "/etc/apache2/sites-available/default" and making "AllowOverride all", then restarted the server.

But nothing works...

any help will be highly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

陈甜 2024-10-07 01:34:40

无需安装任何东西,它已经启用,但您可以检查 Apache 配置文件:

/opt/bitnami/apache2/conf/httpd.conf

...
LoadModule rewrite_module modules/mod_rewrite.so

It is not necessary to install anything, it is already enabled but you can check the Apache configuration file:

/opt/bitnami/apache2/conf/httpd.conf

...
LoadModule rewrite_module modules/mod_rewrite.so
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文