Mundy

IT Knowledge Base

User Tools

Site Tools


Sidebar

Contact me at dan@mundy.co for any feedback or suggestions.


My other sites:

Search all my sites:

nginx

nginx

Access Logs

Useful for troubleshooting, eg if you're getting a “403 error”:

tail /var/log/nginx/access.log

Redirect all HTTP to HTTPS

server {
	listen 80 default_server;
	listen [::]:80 default_server;
	server_name _;
	return 301 https://$host$request_uri;
}

Redirect all HTTP requests to HTTPS with Nginx

nginx.txt · Last modified: 2018/04/09 09:56 (external edit)