Uncategorized

LAMPP Ubuntu in Softlayer

22 Aug , 2015  

Quick guide for setup LAMPP server in Ubuntu :

1
2
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install nginx php5-fpm php5-mysql mysql-server php5-mysql php5-dev php-pear php5 nmap vim

Server

How to enable WSGIPassAuthorization in NGINX + DJango

12 Aug , 2015  

Just in case we need to enable “WSGIPassAuthorization” in NGINX, we can put this in nginx hosts

1
2
3
4
5
proxy_pass_request_headers on;
proxy_no_cache $cookie_nocache  $arg_nocache$arg_comment;
proxy_no_cache $http_pragma     $http_authorization;
proxy_cache_bypass $cookie_nocache $arg_nocache $arg_comment;
proxy_cache_bypass $http_pragma $http_authorization;