Skip to content

Commit

Permalink
added nginx example for proxy setup
Browse files Browse the repository at this point in the history
  • Loading branch information
fs111 committed Jun 19, 2012
1 parent 0badae9 commit 5690cd5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.markdown
Expand Up @@ -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`
------------------------------------

Expand Down

0 comments on commit 5690cd5

Please sign in to comment.