December 2010
1 post
3 tags
Encrypting Certain URIs in Nginx
With the following configuration, paths beginning with /admin, /account, and /secret
will be served using HTTPS, while other paths are served unencrypted. The solution is neither beautiful nor straightforward, so let me know if you have a better one. Also make sure to use //example.com-style references to eliminate browser warnings about mixing secure and non-secure items.
server {
listen ...