Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force SSL/LTS with return directive #234

Merged
merged 1 commit into from
Jun 5, 2017

Conversation

notapatch
Copy link
Contributor

Force SSL/LTS with return directive

NGINX recommends the return directive over regular expressions.
The return directive is simpler to understand and faster to
execute than the regular expression.

Ref
[1]: https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/#taxing-rewrites
[2]: https://www.nginx.com/blog/creating-nginx-rewrite-rules/
Section Example - Forcing all Requests to Use SSL/TLS

NGINX recommends the return directive over regular expressions.
The return directive is simpler to understand and faster to
execute than the regular expression.

Ref
[1]: https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/#taxing-rewrites
[2]: https://www.nginx.com/blog/creating-nginx-rewrite-rules/
Section Example - Forcing all Requests to Use SSL/TLS
@seuros seuros merged commit 00708fa into seuros:master Jun 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants