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/