Skip to content
Browse files

Add sample nginx config.

  • Loading branch information...
1 parent abb6e50 commit 024c54fdcdd0f2bd4253ccb70f5bc05289e37870 @creationix committed Feb 4, 2010
Showing with 18 additions and 1 deletion.
  1. +18 −1 README.markdown
View
19 README.markdown
@@ -2,4 +2,21 @@
node-blog is a static site generator. It's built on node and is currently used to auto-generate the site <http://howtonode.org/>
-The source code for the site is at <http://github.com/creationix/howtonode.org>
+The source code for the site is at <http://github.com/creationix/howtonode.org>
+
+Here is part of the nginx config for howtonode.org:
+
+ server {
+ listen 80;
+ server_name howtonode.org;
+ root /home/tim/www/howtonode.org/public;
+ index index.html;
+ location / {
+ if (-f $request_filename.html) {
+ rewrite (.*) $1.html break;
+ }
+ }
+ location /post_hook {
+ proxy_pass http://127.0.0.1:4242;
+ }
+ }

0 comments on commit 024c54f

Please sign in to comment.
Something went wrong with that request. Please try again.