From 0a503cad299a1b7479af67d7be43eda1e861a1ea Mon Sep 17 00:00:00 2001 From: fanningert Date: Mon, 17 Mar 2014 06:01:23 +0100 Subject: [PATCH] Add nginx configuration example --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index f5f6830..773beb8 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,38 @@ url.rewrite-once = ( ) ```` +### Nginx +Here a basic configuration for nginx. + +```` +server { + listen 80; + + server_name example.com www.example.com; + root /usr/share/nginx/html; + + access_log /var/log/nginx/access.log; + error_log /var/log/nginx/error.log error; + + index index.php; + + location ~ /config/ { + deny all; + } + + location / { + try_files $uri $uri/ /index.php; + } + + location ~ \.php$ { + fastcgi_pass 127.0.0.1:9000; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + } +} +```` + Both Online or Offline ---------------------- In addition by using the built-in editor in the admin panel, you can also write it offline and then upload them into `content/username/blog` folder (the username must match with `YourUsername.ini` above).