“UbuntuHelp:Apache/EnablingModRewrite”的版本间的差异
来自Ubuntu中文
小 |
小 |
||
(未显示同一用户的1个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/Apache/EnablingModRewrite}} | {{From|https://help.ubuntu.com/community/Apache/EnablingModRewrite}} | ||
{{Languages|UbuntuHelp:Apache/EnablingModRewrite}} | {{Languages|UbuntuHelp:Apache/EnablingModRewrite}} | ||
− | < | + | <code><nowiki>mod_rewrite</nowiki></code> was not enabled, by default, on my Apache installation. I am on Ubuntu 7.10 (which is in development, at present). To enable it, I simply issued the following command: |
<pre><nowiki> | <pre><nowiki> | ||
− | + | sudo a2enmod rewrite | |
− | sudo | + | |
</nowiki></pre> | </nowiki></pre> | ||
+ | and then restart apache with: | ||
+ | <pre><nowiki> | ||
+ | sudo /etc/init.d/apache2 force-reload | ||
+ | </nowiki></pre> | ||
+ | To disable it, simply | ||
+ | <pre><nowiki> | ||
+ | sudo a2dismod rewrite | ||
+ | </nowiki></pre> | ||
+ | and then restart apache with the above command. | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2008年10月19日 (日) 04:12的最新版本
mod_rewrite
was not enabled, by default, on my Apache installation. I am on Ubuntu 7.10 (which is in development, at present). To enable it, I simply issued the following command:
sudo a2enmod rewrite
and then restart apache with:
sudo /etc/init.d/apache2 force-reload
To disable it, simply
sudo a2dismod rewrite
and then restart apache with the above command.