Skip to content

Commit

Permalink
Adding sample nginx config.
Browse files Browse the repository at this point in the history
  • Loading branch information
denny committed Feb 8, 2012
1 parent 126d808 commit a016b7a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/Changes
Expand Up @@ -4,6 +4,13 @@ ShinyCMS Changes
This file vaguely documents the revision history for ShinyCMS. Newest items
are at the top.


2012-01-08
- Added sample config for nginx [Paul Webster]

2012-01-07
- Update (c) dates and email address for 2012

2011-12-19
- Add payment handler for subscriptions via CCBill

Expand Down
3 changes: 3 additions & 0 deletions docs/Contributors
Expand Up @@ -31,6 +31,9 @@ The following people have also contributed to the project:
Robert Hood <rphood@rphood.plus.com>
- FileManager.pm fix

Paul Webster (daemon on irc.perl.org)
- Sample nginx config

spacebat on github
- Bug reports

Expand Down
26 changes: 26 additions & 0 deletions docs/sample-nginx-conf/nginx.conf
@@ -0,0 +1,26 @@
server {
server_name example.com;

access_log /home/example.com/code/ShinyCMS.access.log;

root /home/example.com/code/ShinyCMS/;

location /static {
add_header Cache-control public;
root /home/example.com/code/ShinyCMS/root;
}

location / {
add_header Pragma "no-cache";
add_header Cache-control "no-cache, must-revalidate, private, no-store";
expires -1s;

fastcgi_pass unix:/home/example.com/code/ShinyCMS.socket;

include fastcgi_params;

fastcgi_param SCRIPT_NAME /;
fastcgi_param PATH_INFO $fastcgi_script_name;
}
}

0 comments on commit a016b7a

Please sign in to comment.