1. 程式人生 > >yii2高階版advanced框架 域名配置 (Apache)

yii2高階版advanced框架 域名配置 (Apache)

1 進入advanced目錄,執行init初始化指令碼,設定安裝的環境,開發環境or生產環境。

.

2 設定域名,在C:\Windows\System32\drivers\etc目錄下找到hosts檔案進行配置

3 設定域名與本地路徑的對應關係,在apache目錄下的httpd-vhosts.conf下配置

4 環境變數,加入php.exe的完整路徑

 

此時,訪問http://frontend.hyii2.com/

訪問http://backend.hyii2.com/