屏蔽nginx默認頁面或者openresty默認頁面


openresty是對nginx做了一層封裝,屏蔽nginx或者openresty的默認頁面的方法是一樣的,就是對nginx/html/index.html進行修改即可。

ssh nginx@126.10.*.*  // 使用ssh進行登錄,根據提示輸入密碼
// 默認nginx安裝在根目錄的u02內
cd /u02/nginx/html
mv index.html index.html20200527  // 先備份
echo 'It work!' >index.html  // 將It work!寫入新創建的index.html內
curl 127.0.0.1  // 檢查響應結果
exit  // 退出操作

結束!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM