官术网_书友最值得收藏!

  • NGINX Cookbook
  • Tim Butler
  • 163字
  • 2021-07-03 00:04:23

There's more...

Take care when copying and pasting any configuration files. It's very easy to miss something and have one thing slightly different in your environment, which will cause issues with the website working as expected. Here's a quick lookup table of various other issues which you may come across:

Error

What to check

502 Bad Gateway

File ownership permissions for the PHP-FPM socket file

404 File Not Found

Check for the missing index index.php directive

403 Forbidden

Check for the correct path in the root directive and/or check for correct file permissions

 

Your error log (defaults to /var/log/nginx/error.log) will generally contain a lot more detail regarding the issue you're seeing compared with what's displayed in the browser. Make sure you check the error log if you receive any errors.

Hint: NGINX does not support .htaccess files. If you see examples on the web referencing a .htaccess files, these are Apache specific. Make sure any configurations you're looking at are for NGINX.
主站蜘蛛池模板: 娄烦县| 菏泽市| 辛集市| 阳朔县| 滕州市| 清河县| 临沧市| 蒙阴县| 高碑店市| 苗栗市| 习水县| 孟津县| 岳西县| 定结县| 青浦区| 洱源县| 鄂伦春自治旗| 库伦旗| 白玉县| 长春市| 元阳县| 西安市| 盐山县| 绩溪县| 城口县| 肃南| 浦东新区| 庆元县| 民勤县| 沅陵县| 禹州市| 枝江市| 新建县| 鹿泉市| 泽普县| 治多县| 汪清县| 台湾省| 隆子县| 枣庄市| 黄大仙区|