差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录 前一修订版 | |||
| 软件:nginx [2025/12/06 01:04] – admin | 软件:nginx [2025/12/07 21:54] (当前版本) – admin | ||
|---|---|---|---|
| 行 63: | 行 63: | ||
| listen 80; | listen 80; | ||
| server_name localhost; | server_name localhost; | ||
| + | location = / | ||
| + | root / | ||
| + | try_files $uri =404; | ||
| + | fastcgi_pass unix:/ | ||
| + | include fastcgi_params; | ||
| + | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
| + | } | ||
| # Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response. | # Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response. | ||
| location / { | location / { | ||
| 行 98: | 行 105: | ||
| root / | root / | ||
| } | } | ||
| - | } | ||
| - | |||
| - | location = / | ||
| - | root / | ||
| - | try_files $uri =404; | ||
| - | fastcgi_pass unix:/ | ||
| - | include fastcgi_params; | ||
| - | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
| } | } | ||