nginx_ssl
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
nginx_ssl [2017/11/27 14:32] – luke7858 | nginx_ssl [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 9: | Line 9: | ||
To configure and redirect nginx properly and cleanly you need 3 nginx server blocks. | To configure and redirect nginx properly and cleanly you need 3 nginx server blocks. | ||
\\ | \\ | ||
- | The blocks below show a site that is redirected https:// | + | The blocks below show a site that is redirected |
\\ | \\ | ||
A quick overview of these nginx blocks can be found below: | A quick overview of these nginx blocks can be found below: | ||
Line 50: | Line 50: | ||
error_log / | error_log / | ||
+ | location / { | ||
+ | index index.html index.htm index.php; | ||
+ | try_files $uri $uri/ =404; | ||
+ | } | ||
ssl on; | ssl on; |
nginx_ssl.1511793172.txt.gz · Last modified: 2024/05/23 07:26 (external edit)