UbuntuApache2 configure Allowoverride

Source: Internet
Author: User
Two days ago, when I went to the latest version of cakephp for research, I was troubled by the setup of apachallowoverride. No matter how you write Allowoverride, it does not take effect. The reason is that the rewrite module of apache2 in Ubuntu is not loaded by default. Run this command: a2enmodrewrite to enable the rewrite module. After checking the information, Apaceh2 has a set of a2enmod and a2di

Two days ago, when I went to the latest version of cakephp for research, I was troubled by the setup problem of apach allowoverride. No matter how you write Allowoverride, it does not take effect.

The reason is that the rewrite module of apache2 in Ubuntu is not loaded by default.

Run this command: a2enmod rewrite to enable the rewrite module.

After checking the information, Apaceh2 has a set of a2enmod and a2dismod commands for enabling and disabling Apache modules. A2enmod is used to enable a specified module in Apache. In fact, it creates a symbolic link for the module file in the/etc/apache2/mod-enabled directory. In contrast, a2dismo disables a specified module by deleting the symbolic link. Of course, no error is reported if you enable an enabled module or disable a disabled module. ^

It is worth noting that:

/Etc/apache2/mod-available: Put the module files available for apache

/Etc/apache2/mod-enabled: Link to the module File enabled by apache

Check the/etc/apache2/mod-enabled directory. A rewrite. load link is added.

Apache2 rewrite is enabled

From http://blog.thinklet.net/franky/2009/02/17/ubuntu-apache2-%E9%85%8D%E7%BD%AEallowoverride/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.