Skip to content
This repository
Browse code

Merge pull request #301 from fs111/master

nginx proxy howto
  • Loading branch information...
commit ed8119730e8338538636c95af9c9adee5055cc44 2 parents 2cd8ca6 + 5690cd5
John MacFarlane authored June 25, 2012

Showing 1 changed file with 19 additions and 0 deletions. Show diff stats Hide diff stats

  1. 19  README.markdown
19  README.markdown
Source Rendered
@@ -478,6 +478,25 @@ loaded, and set up a virtual host with the following configuration:
478 478
 
479 479
 Reload your apache configuration and you should be all set.
480 480
 
  481
+Using nginx to achieve the same
  482
+-------------------------------
  483
+Drop a file called wiki.example.com.conf into /etc/nginx/conf.d (or where ever
  484
+your distribution puts it).
  485
+
  486
+    server {
  487
+        listen 80;
  488
+        server_name wiki.example.com
  489
+        location / {
  490
+            proxy_pass        http://127.0.0.1:5001/;
  491
+            proxy_set_header  X-Real-IP  $remote_addr;
  492
+            proxy_redirect off;
  493
+        }
  494
+        access_log /var/log/nginx/wiki.example.com.log main;
  495
+    }
  496
+
  497
+Reload your nginx config and you should be good all set.
  498
+
  499
+
481 500
 Proxying to `http://mysite.com/wiki`
482 501
 ------------------------------------
483 502
 

0 notes on commit ed81197

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