Apache rewrite settings in ubuntu

Source: Internet
Author: User

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. <Directory/> Options FollowSymLinks AllowOverride None (modified to AllowOverride All) </Directory> <Directory "/var/orioner"> Options Indexes FollowSymLinks MultiViews AllowOverride None (modified to AllowOverride All) order allow, deny allow from all </Directory> at last, do not forget to use the following command to restart Apache: sudo/etc/init. d/apache2 restart.

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.