Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (12 sloc) 0.658 kb
# -*- mode: nginx; mode: flyspell-prog; ispell-local-dictionary: "american" -*-
### Configuration for reverse proxy. Passing the necessary headers to
### the backend. Nginx doesn't tunnel the connection, it opens a new
### one. Hence whe need to send these headers to the backend so that
### the client(s) IP is available to them. The host is also sent.
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
## Hide the X-Drupal-Cache header provided by Pressflow.
proxy_hide_header 'X-Drupal-Cache';
## Hide the Drupal 7 header X-Generator.
proxy_hide_header 'X-Generator';
Jump to Line
Something went wrong with that request. Please try again.