免费国产美女一级A作爱播放免费,日本动漫精品一区二区三区,ⅩⅩ国产全无遮挡无码,国产精品无码视频2020

  • <delect id="1z9bx"><center id="1z9bx"><ruby id="1z9bx"></ruby></center></delect>

      1. <u id="1z9bx"><sub id="1z9bx"></sub></u>

      2. 如何配置xampp的虛擬主機(jī)

        發(fā)布時(shí)間:2024-03-02
        如何配置xampp的虛擬主機(jī)?xampp有時(shí)候你需要一些頂級(jí)域名訪問(wèn)方式來(lái)訪問(wèn)你本地的項(xiàng)目也就是虛擬主機(jī)配置,這時(shí)候就需要配置虛擬主機(jī),給你的目錄綁定一個(gè)域名,實(shí)現(xiàn)多域名綁定訪問(wèn)。
        一、修改httpd.conf
        文件目錄 xampp => apache =>conf => httpd.conf
        1.在文件內(nèi)搜索 關(guān)鍵字“httpd-vhosts.conf”,找到如下字段
        # virtual hosts include conf/extra/httpd-vhosts.conf//確保此段開頭沒有#2.在文件內(nèi)搜索關(guān)鍵字“allowoverride all”,找到如下字段
        <directory d:/xampp/cgi-bin> allowoverride all options none require all granted </directory> //修改為 <directory d:/xampp/cgi-bin> options indexes followsymlinks includes execcgi allowoverride all order allow,deny allow from all </directory>3.搜索字段“documentroot”,如下
        documentroot d:/xampp/htdocs//確保此處路徑是你要訪問(wèn)的項(xiàng)目的根路徑 ps:可以配置特定的根路徑,比如: documentroot d:/www二、修改httpd-vhosts.conf
        文件目錄 xampp => apache =>conf => extra => httpd-vhosts.conf
        文件最后面可看到如下
        ##<virtualhost *:80> ##serveradmin webmaster@dummy-host2.example.com ##documentroot d:/xampp/htdocs/dummy-host2.example.com ##servername dummy-host2.example.com ##errorlog logs/dummy-host2.example.com-error.log ##customlog logs/dummy-host2.example.com-access.log common ##</virtualhost>1.用ip訪問(wèn)
        <virtualhost 127.0.0.5:80>//設(shè)置訪問(wèn)的ip ##serveradmin webmaster@dummy-host2.example.com documentroot d:/www//你的項(xiàng)目文件目錄 servername testname.dev//此項(xiàng)目的名稱 ##errorlog logs/dummy-host2.example.com-error.log ##customlog logs/dummy-host2.example.com-access.log common </virtualhost>2.用servername訪問(wèn)
        <virtualhost *:80> ##serveradmin webmaster@dummy-host2.example.com documentroot d:/www//你的項(xiàng)目文件目錄 servername testname.dev//此項(xiàng)目的名稱,通過(guò)此名稱來(lái)訪問(wèn)項(xiàng)目,還需配置hosts文件 ##errorlog logs/dummy-host2.example.com-error.log ##customlog logs/dummy-host2.example.com-access.log common </virtualhost>3.配置hosts文件
        文件目錄 c:\windows\system32\drivers\etc\hosts 在文件中加入 127.0.0.1 testname.dev三、修改完記得重啟aphache在進(jìn)行訪問(wèn)
        西部數(shù)碼虛擬主機(jī)入口:https://www.west.cn/services/webhosting/
        上一個(gè):新裝的m2固態(tài)怎么裝win10,m2固態(tài)硬盤怎么安裝win10
        下一個(gè):了解wagner553511無(wú)氣噴槍槍嘴(提高工業(yè)噴涂效率)

        平板的安裝包在哪兒(平板電腦安裝程序)
        什么是用地許可證?
        為什么kyocera傳感器具有如此高的精度和穩(wěn)定性?
        某項(xiàng)目部工地綜治消防安全管理規(guī)定范本
        如何判斷是否構(gòu)成盜竊國(guó)家機(jī)關(guān)印章罪?
        橡膠材小蠹的危害及形態(tài)特征
        用蘋果電腦安裝windows(蘋果電腦能裝windows的軟件嗎)
        感應(yīng)式超聲波熱量表,對(duì)夾式超聲波熱量表
        ADI - 用于數(shù)字IC電源的雙通道線性穩(wěn)壓器可實(shí)現(xiàn)即時(shí)輸出調(diào)整和動(dòng)態(tài)裕量?jī)?yōu)化
        LUGB-DN150渦街流量計(jì)