Mundy

IT Knowledge Base

User Tools

Site Tools


nginx

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
nginx [2016/11/04 09:20]
Dan Mundy created
nginx [2018/04/09 09:56] (current)
Line 6: Line 6:
  
 <​code>​tail /​var/​log/​nginx/​access.log</​code>​ <​code>​tail /​var/​log/​nginx/​access.log</​code>​
 +
 +===== Redirect all HTTP to HTTPS =====
 +
 +<​blockquote>​
 +<​code>​
 +server {
 + listen 80 default_server;​
 + listen [::]:80 default_server;​
 + server_name _;
 + return 301 https://​$host$request_uri;​
 +}
 +</​code>​
 +<​cite>​[[https://​www.bjornjohansen.no/​redirect-to-https-with-nginx|Redirect all HTTP requests to HTTPS with Nginx]]</​cite>​
 +</​blockquote>​
nginx.txt · Last modified: 2018/04/09 09:56 (external edit)