Browse Source

Add nginx configuration example

pull/30/head
fanningert 11 years ago
parent
commit
0a503cad29
1 changed files with 32 additions and 0 deletions
  1. +32
    -0
      README.md

+ 32
- 0
README.md View File

@ -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 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). 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).


Loading…
Cancel
Save