Last active
December 24, 2016 17:31
-
-
Save theoretick/71c34dfc3221d9a5f8d778e5418c1206 to your computer and use it in GitHub Desktop.
How to return plaintext using just nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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