第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

修改nginx默認(rèn)web目錄的求助

修改nginx默認(rèn)web目錄的求助

慕哥6287543 2019-03-02 15:02:02
修改nginx默認(rèn)web目錄的求助
查看完整描述

2 回答

?
慕尼黑5688855

TA貢獻(xiàn)1848條經(jīng)驗(yàn) 獲得超2個(gè)贊

默認(rèn)網(wǎng)站根目錄為/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
已經(jīng)安裝了samba,所以要將vi /etc/samba/smb.conf中的[public]下的path值改為
path = /home/www/



查看完整回答
反對(duì) 回復(fù) 2019-03-08
?
吃雞游戲

TA貢獻(xiàn)1829條經(jīng)驗(yàn) 獲得超7個(gè)贊

修改配置文件/etc/nginx/conf.d/default.conf

查看完整回答
反對(duì) 回復(fù) 2019-03-08
  • 2 回答
  • 0 關(guān)注
  • 2234 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)