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

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.
主站蜘蛛池模板: 乐都县| 黄浦区| 云阳县| 莲花县| 南城县| 嘉荫县| 泰安市| 息烽县| 五台县| 嘉祥县| 陆川县| 沁源县| 兴隆县| 出国| 台东市| 加查县| 抚远县| 平陆县| 乌什县| 尖扎县| 鱼台县| 许昌县| 滕州市| 安达市| 邢台市| 札达县| 德清县| 南开区| 台江县| 竹溪县| 镇江市| 迁安市| 防城港市| 蚌埠市| 山丹县| 广南县| 镇赉县| 汉寿县| 拉萨市| 元江| 江源县|