Skip to content

Instantly share code, notes, and snippets.

@Tupsi
Tupsi / pathfinder.conf
Last active March 12, 2016 22:44 — forked from exodus4d/pathfinder.conf
pathfinder.conf for Pathfinder (Nginx v.1.9.9)
# www to non-www redirect -- duplicate content is BAD:
# https://github.com/h5bp/html5-boilerplate/blob/5370479476dceae7cc3ea105946536d6bc0ee468/.htaccess#L362
# Choose between www and non-www, listen on the *wrong* one and redirect to
# the right one -- http://wiki.nginx.org/Pitfalls#Server_Name
# rewrite to HTTPS
server {
listen 80;
server_name www.pathfinder-w.space;
return 301 https://www.$server_name$request_uri;