nginx rewrite example

[CODE] server { listen 80; server_name wiki.example.com; root /home/example.com/wiki/www; location / { index index.php; rewrite ^/$ /wiki/Main_Page permanent; } # 2 rewrite rules rewrite ^/wiki/([^?]*)(?:\?(.*))? /w/index.php?title=$1&$2; rewrite ^/wiki /w/index.php; # Your FCGI configuration here location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /home/example.com/wiki/www$fastcgi_script_name; include fastcgi_params; } } [/CODE]

14/01/2015

Nginx notes

NOTES: Configration code blocks :  http, location, server related websites: maxmind Monitorix (Stub status) Google-perftools

14/01/2015

How to install php gd library in linux

Gd library installation  

1-  open terminal

2- login  as root

3-  in terminal console   " apt-get install php5-gd"

4- then [Y/n] appears on screen  press y  ,press ENTER

5- Finish


14/01/2015