Deploy the Django-developed project to the APACHE2 server. Log my configuration process.The Apache,django,mod_wsgi,python version is as follows. Different versions are similar.II apache2 2.2.22-1ubuntu1.6
Need to turn on the Apache2 rewrite module1. Open/etc/apache2/apache2.confChange allowoverride None in the file to allowoverride all2, modify the mods-enable configuration, add a software linkcd/etc/apache2/mods--S. /mods-avaiable/rewrite.load
In apache,. htaccess is generally used in virtual hosts to take advantage of this function when there is no permission to operate the server. It needs to enable apache-related modules. Mod Rewrite can be directly included in the apache conf
Enable the mod_rewrite module for Apache2 on Ubuntu server. The mod_rewrite module is not tested and is used by LinuxIDC.Sudo ln-s/etc/apache2/mod-available/rewrite. load/etc/apache2/mod-enabled/rewrite.
1. Install apache2 under Ubuntucommand for sudo apt-get install apache2,Apache2 is a modular software that relies on the apache2.conf file to link the functions of each module .after the installation is complete, the apache2.conf configuration file
The Mode Rewrite module of Apache provides a Rewrite engine based on regular expression analyzer to Rewrite URL requests in real time.
Manager Introduction
Apache module mod_rewriteDescribes an engine for real-time URL rewriting requests based on
The Apache mode rewrite module provides a rewrite engine based on the regular expression parser to rewrite URL requests in real time. In most cases, it is used in conjunction with the. htaccess file. For example, the URL of this article
There are two ways to enable mod_rewrite in Ubuntu systems:First: After executing the sudo a2enmod rewrite instruction in the terminal, that is, the Mod_rewrite module is enabled, and the module of the APACHE2 server is enabled in the same way as
Apache2 httpd.conf Chinese version
#
# A configuration file based on the NCSA service.
#
#这是Apache服务器主要配置文件.
#它包含服务器的影响服务器运行的配置指令.
#参见 #
#不要只是简单的阅读这些指令信息而不去理解它.
#这里只是做了简单的说明, if you don't have a reference online file, you'll be
For the novice and me to see.
#
# A configuration file based on the NCSA service.
#
#这是Apache服务器主要配置文件.
#它包含服务器的影响服务器运行的配置指令.
#参见 #
#不要只是简单的阅读这些指令信息而不去理解它.
#这里只是做了简单的说明, if you don't have a reference online file, you'll be
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.