前后端分離
怎么讓訪問域名跟目錄是訪問了 public 目錄下的index.html文件
現(xiàn)在都是訪問到php里面去了
我在public目錄下 放了 index.html 和 system文件夾 ,system文件夾里面有一個 index.html文件
我想要的是 訪問http://www.abc.com/ 這樣直接打開 public 目錄下的index.html 文件
但是現(xiàn)在我的情況是下面這樣的:
訪問http://www.abc.com/system/ 這樣直接打開 public 目錄下的system/index.html 文件
而我現(xiàn)在 訪問 http://www.abc.com/ 打開的是頁面是 404 Not Found
訪問 http://www.abc.com/system/ 打開的是頁面是 404 Not Found
http://wtbis.cn/doc/webman/others/nginx-proxy.html
nginx配置參考文檔,如果想自動訪問index.html,設置里加一句
index index.html;
現(xiàn)在是AI時代啦,通用問題問AI解決速度最快
http://wtbis.cn/ai