命名规则:XXX.域名信息.conf
配置文件路径:etc/nginx/conf.d/xxxx.conf
配置文件内容:server {
listen 80;(监听端口)
server_name xxxx.com;(域名名称)
index index.php index.html index.htm;(入口文件)php
set $root_path '/home/www/phalcon.codinuts.com/XXX/public';(入口文件所在文件地址)
include /etc/nginx/conf.inc/phalcon;
}html
服务器通常路径:etc/init.d/nginx
服务器重启命令:nginx -s reload