第一步:c:\windows\system32\drivers\etc中的hosts檔案中新增
127.0.0.1 www.test.com(直接訪問的位址)
第二步:apache\conf下的httpd.conf檔案中開啟 include conf/extra/httpd-vhosts.conf
第三步:apache\conf\extra httpd-vhosts.conf檔案中設定
serveradmin webmaster@dummy-host2.example.com
documentroot "d:" //專案所在路徑
servername www.test.com //直接訪問的伺服器位址
errorlog "logs/dummy-host2.example.com-error.log"
customlog "logs/dummy-host2.example.com-access.log" common
Android 隨筆記錄
安卓環境變數配置 系統變數 變數名 android home 變數值 d android android sdk windows path中增加 android home platform tools android home tools 返回 override public boolean onk...
Task async await隨筆記錄
using system using system.collections.generic using system.linq using system.text using system.threading using system.threading.tasks namespace taskco...
openssh 隨筆記錄
openssh for windows 1.安裝openssh for windows 2.建立配置檔案c 使用者 使用者名稱.ssh config 3.配置檔案中寫如下內容防止ssh客戶端掉線 其中數字99表示99秒,數字3表示3次 serveraliveinterval 99 serverali...