location /some/path/ {
proxy_pass http://new.domain;
}
}
http://orig.domain/some/path/x --> http://new.domain/some/path/x
proxy_pas case insensitive:
location ~* /some/path/ {
proxy_pass http://new.domain;
}
proxy_pas case insensitive:
location ~* /some/path/ {
proxy_pass http://new.domain;
}
http://orig.domain/SOME/Path/x --> http://new.domain/SOME/Path/x
SSL:
- Redirect HTTP to HTTPS: https://bjornjohansen.no/redirect-to-https-with-nginx
- Certificate: https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-nginx-for-centos-6
- Optimal (TLS, etc): https://bjornjohansen.no/optimizing-https-nginx
No comments:
Post a Comment