Skip to content

Instantly share code, notes, and snippets.

@d3vkit
Created July 3, 2013 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d3vkit/e0d9a2678f3e73424679 to your computer and use it in GitHub Desktop.
Save d3vkit/e0d9a2678f3e73424679 to your computer and use it in GitHub Desktop.
Portal Conf
upstream portal {
server unix:///var/www/portal/tmp/pids/portal.sock fail_timeout=0;
}
server {
listen 443;
server_name local.portal; # change to match your URL
root /var/www/portal/public;
location / {
proxy_pass http://portal; # match the name of upstream directive which is defined above
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment