Last active
August 29, 2015 14:08
-
-
Save ericelliott/794348a1b075f0d75a8e to your computer and use it in GitHub Desktop.
Broken redirect.
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
Nginx: | |
``` | |
173.245.55.164 - - [05/Nov/2014:18:46:21 -0500] "GET /js/index.js HTTP/1.1" 200 23893 "http://moonshotcon.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36" | |
``` | |
Apache2 | |
``` | |
127.0.0.1 - - [05/Nov/2014:18:46:21 -0500] "GET /wp-content/plugins/google-analyticator/external-tracking.min.js?ver=6.4.8 HTTP/1.0" 200 761 "http://moonshotcon.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36" | |
``` |
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
``` | |
upstream ui { | |
server 127.0.0.1:8080; | |
} | |
upstream api { | |
server 127.0.0.1:3000; | |
} | |
server { | |
listen 80; | |
# listen 443 ssl; | |
server_name ericelliottjs.com www.ericelliottjs.com; | |
# ssl on; | |
# ssl_certificate /etc/nginx/ssl/ericelliottjs.com/ssl-bundle.crt; | |
# ssl_certificate_key /etc/nginx/ssl/ericelliottjs.com/server.key; | |
# ssl_session_cache shared:SSL:20m; | |
# ssl_session_timeout 10m; | |
# ssl_prefer_server_ciphers on; | |
add_header Strict-Transport-Security "max-age=31536000"; | |
location /js { | |
root /var/api/ericelliottjs.com/public; | |
} | |
location /api { | |
proxy_pass http://api; | |
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-Forwarded-Proto $scheme; | |
} | |
location / { | |
proxy_pass http://ui; | |
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-Forwarded-Proto $scheme; | |
} | |
} | |
``` |
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
``` | |
server { | |
listen 80; | |
server_name moonshotcon.com; | |
return 301 $scheme://www.moonshotcon.com$request_uri; | |
} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment