国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > 建站經驗 > 正文

修改nginx默認web目錄的方法?

2019-11-02 14:06:37
字體:
來源:轉載
供稿:網友
  默認網站根目錄為/usr/local/nginx/html,要將它改成/homw/www
  vi /usr/local/nginx/conf/nginx.conf
  將其中的
  location / {
  root html;
  index index.php index.html index.htm;
  }
  改為
  location / {
  root /home/www;
  index index.php index.html index.htm;
  }
  然后再將
  location ~ /.php$ {
  root html;
  fastcgi_pass 127.0.0.1:9000;
  fastcgi_index index.php;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  include fastcgi_params;
  }
  改為
  location ~ /.php$ {
  root /home/www;
  fastcgi_pass 127.0.0.1:9000;
  fastcgi_index index.php;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  include fastcgi_params;
  }
  然后重啟nginx
  已經安裝了samba,所以要將vi /etc/samba/smb.conf中的[public]下的path值改為
  path = /home/www/
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 德庆县| 清流县| 儋州市| 泽州县| 乌什县| 汨罗市| 紫金县| 延吉市| 新乐市| 辽中县| 奈曼旗| 金坛市| 乐平市| 襄城县| 隆回县| 蛟河市| 防城港市| 韶关市| 祁东县| 青浦区| 泾阳县| 云和县| 富顺县| 鹤庆县| 磐石市| 靖江市| 元谋县| 宝山区| 芮城县| 曲阳县| 桓仁| 合江县| 拜泉县| 九龙城区| 彩票| 左云县| 汝阳县| 海阳市| 石河子市| 石林| 镇原县|