Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #301 from fs111/master

nginx proxy howto
  • Loading branch information...
commit ed8119730e8338538636c95af9c9adee5055cc44 2 parents 2cd8ca6 + 5690cd5
@jgm authored
Showing with 19 additions and 0 deletions.
  1. +19 −0 README.markdown
View
19 README.markdown
@@ -478,6 +478,25 @@ loaded, and set up a virtual host with the following configuration:
Reload your apache configuration and you should be all set.
+Using nginx to achieve the same
+-------------------------------
+Drop a file called wiki.example.com.conf into /etc/nginx/conf.d (or where ever
+your distribution puts it).
+
+ server {
+ listen 80;
+ server_name wiki.example.com
+ location / {
+ proxy_pass http://127.0.0.1:5001/;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_redirect off;
+ }
+ access_log /var/log/nginx/wiki.example.com.log main;
+ }
+
+Reload your nginx config and you should be good all set.
+
+
Proxying to `http://mysite.com/wiki`
------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.