Skip to content

Instantly share code, notes, and snippets.

@chriscowley
Last active December 11, 2015 10:28
Show Gist options
  • Select an option

  • Save chriscowley/4586630 to your computer and use it in GitHub Desktop.

Select an option

Save chriscowley/4586630 to your computer and use it in GitHub Desktop.
Nginx config for Trac
upstream trac.example.com {
server 127.0.0.1:3050;
}
server {
listen 80;
server_name trac.example.com;
access_log /var/log/nginx/trac.access.log;
error_log /var/log/nginx/trac.error_log;
location / {
proxy_pass http://trac.example.com;
proxy_set_header X-Real-IP $remote_addr;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment