Nginx和php安裝及配置第三篇:nginx的配置文件

1、打開配置文件:/usr/local/nginx-1.8.0/conf/nginx.conf 這裏 root就是代碼指向的目錄        server_name就是域名        location/  表示匹配所有url都執行匹配後操作,這裏下面做了一個rewrite:          if (!-e $request_filename){             rewrite ^/
相關文章
相關標籤/搜索