Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Linux environment to configure Apache + Django + wsgi     - Linux system using the command line shutdown or restart (Linux)

- Oracle 11g RAC installation considerations Miscellany (Database)

- Use smartmontools view the health status of hard disk (Linux)

- Precautions against hackers Linux environment (Linux)

- Oracle user lock how to know what causes (Database)

- Ubuntu installation under Scrapy (Linux)

- Dual system Linux (Ubuntu) into the Windows NTFS partition's mount error (Linux)

- Linux fixes fatal error: x264.h: No such file or directo (Linux)

- How to configure a development environment elegant Lua (Linux)

- Use Vagrant up a local development environment tutorials (Server)

- Android Dynamic efficiency articles: a brilliant Loading Analysis and Implementation (Programming)

- 17 How to install the Ubuntu 14.04 and Linux Mint Kodi14 (XBMC) (Linux)

- Compile and install Redis and register as a system service under RedHat5.8 environment (Database)

- Will Laravel become the most successful PHP framework? (Programming)

- mysql_config_editor encryption and decryption of the new features of MySQL realization (Database)

- Ubuntu study notes and related problem solving (Linux)

- Windows SmartGit installation (Linux)

- Ubuntu: HDF5 error: HDF5 header version does not match with the HDF5 library (Linux)

- To execute the cp command prompt type skip folder under CentOS (Linux)

- CentOS source installation GitLab Chinese Version (Server)

 
         
  Linux environment to configure Apache + Django + wsgi
     
  Add Date : 2018-11-21      
         
         
         
  In the Django development environment, we simply by "python manage.py runserver 0.0.0.0:8000" you can start with a simple HTTP server for Django developers. When the completion of the project development release, this simple application server can not meet demand. This program is a good time to Django applications into Apache.

Django has done a lot of work for us, it will be integrated into Django Apache is a very simple thing. Django integrated into the Apache There are two ways: python_mod and wsgi, the latter relative to the former is more stable, so here we wsgi approach to integration.
First introduce my environment:

0.CentOS X64

1.Apache 2.2.3

2.Django 1.6.1

Integration Step 1: Install mod_wsgi

yum insall python26-mod_wsgi.x86_64

After installation is complete, check the Apache directory /etc/httpd/conf.d/ occur python26-mod_wsgi.conf, inside has been good for us is automatically loading mod_wsgi.so configurations:

################################################## ###############################
# Do not enable mod_python and mod_wsgi in the same apache process.
################################################## ###############################
#

# NOTE: By default python26-mod_python with not load if mod_wsgi is installed
# And enabled. Only load if mod_python and mod_wsgi are not already loaded.