Solution for setting apacherewrite in ubuntu One or two days later, I moved my website to Ubuntu9.04. to create a pseudo-static page, I need to enable the Apache rewrite module. In other Linux versions, this problem seems to be easy to solve, but in ubuntu, there is... solution for setting apache rewrite in ubuntu One or two days later, I moved my website under Ubuntu 9.04. to create a pseudo-static page, I need to enable the Apache rewrite module. In other Linux versions, this problem seems to be easy to solve, but in ubuntu, it is a little different. You can create a new soft connection by running commands. Command: sudo a2enmod rewrite soft connection: sudo ln-s/etc/apache2/mod-available/rewrite. load/etc/apache2/mod-enabled/rewrite. load because the configuration file and directory structure of Apache are not the same in Ubuntu, the module is available in mod-avalilable, the modules that are actually enabled are under the Directory of the mod-enable. Therefore, you can also enable the rewrite module by creating a soft connection. In addition to enabling rewrite, you also need to modify the file/etc/apache2/sites-available/default if you only have one site, if you are a VM, modify your/etc/apache2/sites-available/www.orioner.net. conf (my VM configuration file. Options FollowSymLinks AllowOverride None (modified to AllowOverride All) Options Indexes FollowSymLinks MultiViews AllowOverride None (modified to AllowOverride All) Order allow, deny allow from all Finally, do not forget to use the following command to restart Apache: sudo/etc/init. d/apache2 restart.
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.