# Ubuntu Apache2 添加重写模块的命令

**URL:** <https://www.isharkfly.com/t/ubuntu-apache2/16419>\
**Category:** DevOps\
**Tags:** ubuntu\
**Created:** [October 11, 2024, 11:43pm UTC](https://www.isharkfly.com/t/ubuntu-apache2/16419 "2024-10-11T23:43:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [October 11, 2024, 11:43pm UTC](https://www.isharkfly.com/t/ubuntu-apache2/16419/1 "2024-10-11T23:43:08Z")

</div>

Apache2 安装成功后通常还需要添加重写模块。

在 Ubuntu 中添加重写模块的命令为：

`sudo a2enmod rewrite`

可以尝试运行添加下。

---

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [October 13, 2024, 1:35am UTC](https://www.isharkfly.com/t/ubuntu-apache2/16419/2 "2024-10-13T01:35:20Z")

</div>

Split this topic on October 13, 2024, 1:35am UTC

2 posts were merged into an existing topic: [Python 使用 STOMP 向 ActiveMQ 循环发送消息](https://www.isharkfly.com/t/python-stomp-activemq/16420)

---

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [October 13, 2024, 1:34am UTC](https://www.isharkfly.com/t/ubuntu-apache2/16419/3 "2024-10-13T01:34:25Z")

</div>

Made this topic public on October 13, 2024, 1:34am UTC



---

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [October 13, 2024, 1:35am UTC](https://www.isharkfly.com/t/ubuntu-apache2/16419/4 "2024-10-13T01:35:21Z")

</div>

Closed on October 13, 2024, 1:35am UTC



---

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [October 31, 2024, 1:22am UTC](https://www.isharkfly.com/t/ubuntu-apache2/16419/5 "2024-10-31T01:22:45Z")

</div>

Opened on October 31, 2024, 1:22am UTC


