Skip to content

Instantly share code, notes, and snippets.

@theoretick
Last active December 24, 2016 17:31
Show Gist options
  • Save theoretick/71c34dfc3221d9a5f8d778e5418c1206 to your computer and use it in GitHub Desktop.
Save theoretick/71c34dfc3221d9a5f8d778e5418c1206 to your computer and use it in GitHub Desktop.
How to return plaintext using just nginx
theoretick@li1316-219:/etc/nginx/sites-enabled$ cat discuss_it
server {
listen 80 default;
server_name www.discussitapp.com discussitapp.com;
location / {
#proxy_pass http://sinatra;
proxy_pass http://localhost:3000;
}
location /chat_hole {
proxy_pass http://localhost:3001/;
}
location /status_test/200 {
return 200 '200 OK';
add_header Content-Type text/plain;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment