Skip to content

Instantly share code, notes, and snippets.

@Suhail
Forked from damm/gist:204370
Created October 7, 2009 19:48
Show Gist options
  • Save Suhail/204372 to your computer and use it in GitHub Desktop.
Save Suhail/204372 to your computer and use it in GitHub Desktop.
Restarting nginx: 2009/10/07 19:42:52 [emerg] 11068#0: "proxy_pass" may not have URI part in location given by regular expression, or inside named location, or inside the "if" statement, or inside the "limit_except" block in /etc/nginx/sites-enabled/api.domain.com:47
nginx.
location / {
gzip on;
gzip_http_version 1.0;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_buffers 16 8k;
proxy_redirect off;
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-Magic-Header "secret";
proxy_connect_timeout 10;
client_max_body_size 10m;
if (!-f $request_filename) {
proxy_pass http://127.0.0.1:8000/;
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment