HTTP Routing

From Pumping Station: One Wiki
Revision as of 16:35, 22 February 2016 by Kuroishi (talk | contribs)
Jump to: navigation, search

We have a reverse-proxy running for Contact the CTO if you would like a CNAME record added for https should be working for all listeners on :443, provided by wildcard SSL cert for *

Currently the reverse proxy is handled by nginx running on To create a vhost on the server, authenticate with www1 via your AD credentials and use sudo access to create /etc/nginx/sites-available/

upstream example {

server {
  listen 80;
  return 301$request_uri;

server {
       listen 443 ssl spdy;
       gzip on;

       proxy_connect_timeout       300;
       proxy_send_timeout          300;
       proxy_read_timeout          300;
       send_timeout                300;

       location / {
                       proxy_pass http://example;
                       proxy_set_header        Host                    $host;
                       proxy_set_header        X-Real-IP               $remote_addr;
                       proxy_set_header        X-Forwarded-For         $proxy_add_x_forwarded_for;
                       proxy_set_header        X-Forwarded-Proto       $scheme;

Then symlink the configuration to /etc/nginx/sites-enabled as follows:

cd /etc/nginx/sites-enabled/
sudo ln -s ../sites-available/

And reload nginx:

sudo systemctl reload nginx