From 55c44b0f578a8a3cbaaec722697331add3f47b3e Mon Sep 17 00:00:00 2001 From: Sergey Romanenko Date: Tue, 14 Jan 2014 06:29:40 -0800 Subject: [PATCH] Updated Installation on a Web Server (markdown) --- Installation-on-a-Web-Server.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/Installation-on-a-Web-Server.md b/Installation-on-a-Web-Server.md index f1be073..f8b8db4 100644 --- a/Installation-on-a-Web-Server.md +++ b/Installation-on-a-Web-Server.md @@ -50,4 +50,35 @@ Options -Indexes # Update code bellow for SEO improvements # Redirect 301 /home http://example.org/ -``` \ No newline at end of file +``` + +#### Ngnix config for Monstra +``` +# Monstra config + +server { + listen 80; + server_name www.monstra.net monstra.net; + + access_log /var/log/nginx/monstra.net_access.log; + error_log /var/log/nginx/monstra.net_error.log; + + root /var/www/monstra; + index index.php; + + location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|txt|js|map)$ { + expires 1d; + } + + location / { + rewrite /home / permanent; + rewrite ^/(.+)$ /index.php; + } + + location ~ \.php$ { + include fastcgi_params; + fastcgi_pass 127.0.0.1:9000; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + } +} +```