-
-
Save golf1052/19ca7b9065bcff909426 to your computer and use it in GitHub Desktop.
My old nginx config
This file contains 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
# You may add here your | |
# server { | |
# ... | |
# } | |
# statements for each of your virtual hosts to this file | |
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# http://wiki.nginx.org/Pitfalls | |
# http://wiki.nginx.org/QuickStart | |
# http://wiki.nginx.org/Configuration | |
# | |
# Generally, you will want to move this file somewhere, and start with a clean | |
# file but keep this around for reference. Or just disable in sites-enabled. | |
# | |
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples. | |
## | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
root /var/www/golf1052.com/public_html; | |
index index.html index.htm; | |
# Make site accessible from http://localhost/ | |
server_name golf1052.com www.golf1052.com; | |
location / { | |
# First attempt to serve request as file, then | |
# as directory, then fall back to displaying a 404. | |
try_files $uri $uri/ =404; | |
# Uncomment to enable naxsi on this location | |
# include /etc/nginx/naxsi.rules | |
} | |
location ~* \.(py|pyc|exe|sh|txt|ini)$ { | |
deny all; | |
} | |
error_page 404 /404.html; | |
} | |
server { | |
listen 80; | |
server_name blog.golf1052.com; | |
location / { | |
proxy_pass http://127.0.0.1:2368/; | |
proxy_set_header Host $host; | |
proxy_buffering off; | |
} | |
} | |
server { | |
listen 80; | |
server_name webhook.golf1052.com; | |
location / { | |
proxy_pass http://127.0.0.1:8889/; | |
proxy_redirect off; | |
proxy_set_header HOST $host; | |
proxy_buffering off; | |
} | |
} | |
server { | |
listen 80; | |
server_name languages-server.golf1052.com; | |
location / { | |
proxy_pass http://127.0.0.1:8890/; | |
proxy_redirect off; | |
proxy_set_header HOST $host; | |
proxy_buffering off; | |
} | |
} | |
server { | |
server_name resume.golf1052.com; | |
return 302 "http://golf1052.com/documents/sanders_lauture_resume.pdf"; | |
} | |
server { | |
server_name facebook.golf1052.com; | |
return 302 "https://www.facebook.com/golf1052"; | |
} | |
server { | |
server_name github.golf1052.com; | |
return 302 "https://github.com/golf1052"; | |
} | |
server { | |
server_name imgur.golf1052.com; | |
return 302 "http://golf1052.imgur.com"; | |
} | |
server { | |
server_name linkedin.golf1052.com; | |
return 302 "https://www.linkedin.com/in/golf1052"; | |
} | |
server { | |
server_name reddit.golf1052.com; | |
return 302 "https://www.reddit.com/user/golf1052"; | |
} | |
server { | |
server_name steam.golf1052.com; | |
return 302 "http://www.steamcommunity.com/id/golf1052"; | |
} | |
server { | |
server_name twitch.golf1052.com; | |
return 302 "http://www.twitch.tv/golf1052"; | |
} | |
server { | |
server_name twitter.golf1052.com; | |
return 302 "https://www.twitter.com/golf1052"; | |
} | |
server { | |
server_name vimeo.golf1052.com; | |
return 302 "http://vimeo.com/user1947582"; | |
} | |
server { | |
server_name youtube.golf1052.com; | |
return 302 "https://www.youtube.com/1golf1052"; | |
} | |
server { | |
server_name rapid.golf1052.com; | |
return 302 "http://golf1052.com/rapid/index.html"; | |
} | |
server { | |
server_name hci.golf1052.com; | |
return 302 "http://golf1052.com/hci/index.html"; | |
} | |
server { | |
listen 80; | |
server_name attentionpassengers.golf1052.com; | |
error_log /var/log/nginx/attentionpassengers.error.log debug; | |
rewrite_log on; | |
#location ^~ /templates/ { | |
# root /var/www/golf1052.com/public_html/attentionpassengers/templates; | |
#} | |
location / { | |
#proxy_pass http://127.0.0.1:5432/; | |
#proxy_set_header Host $host; | |
#proxy_buffering off; | |
include uwsgi_params; | |
uwsgi_pass unix:/var/www/golf1052.com/public_html/attentionpassengers/attentionpassengers.sock; | |
} | |
} | |
server { | |
listen 80; | |
server_name attentionpassengers.com www.attentionpassengers.com; | |
root /var/www/golf1052.com/public_html/attentionpassengers/templates; | |
index index.html; | |
} | |
server { | |
listen 80; | |
server_name hotlinering.com www.hotlinering.com; | |
#root /var/www/golf1052.com/public_html/hotlinering; | |
#index index.html; | |
location / { | |
proxy_pass http://127.0.0.1:5000/; | |
proxy_set_header Host $host; | |
proxy_buffering off; | |
#include uwsgi_params; | |
#uwsgi_pass unix:/var/www/golf1052.com/public_html/close-call/close.sock; | |
} | |
#location /dance { | |
# root /var/www/golf1052.com/public_html/hotlinering; | |
# rewrite ^/dance$ /index.html; | |
# #try_files /index.html; | |
#} | |
} | |
server { | |
listen 80; | |
server_name venmo-for-slack.golf1052.com; | |
error_log /var/log/nginx/venmo.error.log debug; | |
rewrite_log on; | |
location / { | |
#proxy_pass http://127.0.0.1:5000/; | |
#proxy_set_header Host $host; | |
#proxy_buffering off; | |
include uwsgi_params; | |
uwsgi_pass unix:/var/www/golf1052.com/public_html/venmo/venmo.sock; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment