Compile nginx + mod_wsgi (it has been around for several hours and is not worth it)
* Libpcre3 requires the dev version of APT-Get install libpcre3-dev. Generally, Lib is divided into the binary version and the dev version of the leading file. When compiling something, You must select the dev version of the leading file.
* Sudo apt-Get install zlib1g-dev
* Sometimes the new Lib installed in Ubuntu needs to be restarted, otherwise it will say it cannot be found.
* Currently used Nginx-0.8.34, mod_wsgi official link for not for this version, so go to SVN check out code to compile. Similar to compiling other things, it is best to check out from SVN!
* Remember to remove the mail-related modules and add the status module.
./Configure -- With-OpenSSL =/usr/lib/SSL/-- add-module = ../mod_wsgi
./Configure
-- With-OpenSSL =/usr/lib/SSL/
-- With-md5 =/usr/lib
-- Add-module = ../mod_wsgi
With-http_stub_status_module
With-http_realip_module
Without-mail_pop3_module
Without-mail_imap_module
Without-mail_smtp_module
########################
UBUNTU Nginx Installation
Sudo apt-get install libgcrypt11-dev libpcre3-dev libssl-dev
./Configure/
-- With-openssl =/usr/lib/ssl //
-- With-md5 =/usr/lib/
-- With-http_stub_status_module/
-- With-http_realip_module/
-- Without-mail_pop3_module/
-- Without-mail_imap_module/
Without-mail_smtp_module
Make
Sudo make install