TJW-Tech Wiki

Mandatory Happiness

User Tools

Site Tools


notes:nginx_default_page

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
notes:nginx_default_page [2020/03/11 13:51]
timothy
notes:nginx_default_page [2020/03/11 13:56] (current)
timothy
Line 1: Line 1:
 +====== Nginx: return 404 to any requests with no host header ======
 +
 Generate a self signed cert (to prevent leaking host names when a https request comes through with no host header): Generate a self signed cert (to prevent leaking host names when a https request comes through with no host header):
 ''​openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /​etc/​nginx/​ssl/​default.key -out /​etc/​nginx/​ssl/​default.pem''​ ''​openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /​etc/​nginx/​ssl/​default.key -out /​etc/​nginx/​ssl/​default.pem''​
notes/nginx_default_page.txt ยท Last modified: 2020/03/11 13:56 by timothy