<del id="d4fwx"><form id="d4fwx"></form></del>
      <del id="d4fwx"><form id="d4fwx"></form></del><del id="d4fwx"><form id="d4fwx"></form></del>

            <code id="d4fwx"><abbr id="d4fwx"></abbr></code>
          • winxpapache用php建本地虛擬主機(jī)的方法

            2022-10-04    分類: 虛擬主機(jī)

            1 在C:\WINDOWS\system32\drivers\etc\hosts
            添加如下代碼:
            127.0.0.1 localhost
            127.0.0.1 x.test.com x.test1.com x.test2.com
            注:x.test.com(假設(shè)的DNS)
            2 在E:\WAMP\Apache2.2\conf\extra\httpd-vhosts.conf
            修改內(nèi)容:
            NameVirtualHost *

            ServerAdmin [email protected]
            DocumentRoot E:/WAMP/www
            ServerName localhost
            ErrorLog logs/localhost-error_log
            CustomLog logs/localhost-access_log common


            ServerAdmin [email protected]
            DocumentRoot E:/WAMP/www/app (應(yīng)用目錄)
            ServerName test.com
            ServerAlias x.test.com admin.teeume.com
            ErrorLog logs/x.test.com-error_log
            CustomLog logs/x.test.com-access_log common


            ServerAdmin [email protected]
            DocumentRoot E:/WAMP/www/app/assets
            ServerName x.test1.com
            ErrorLog logs/img.test1.com-error_log
            CustomLog logs/img.test1.com-access_log common

            #自己建的目錄

            ServerAdmin [email protected]
            DocumentRoot E:/WAMP/www/test/assets
            ServerName x.test2.com
            ErrorLog logs/img.test2.com-error_log
            CustomLog logs/img.test2.com-access_log common

            ============================
            3 檢查是否關(guān)聯(lián)php
            在E:\WAMP\Apache2.2\conf 找到httpd.conf
            在末尾是否有如下在代碼:
            ############start for php5
            LoadModule php5_module E:/WAMP/php5/php5apache2_2.dll
            PHPIniDir E:/WAMP/php5
            AddType application/x-httpd-php .php .phtml .php5
            AddType application/x-httpd-php-source .phps
            #####end for php5
            若無(wú)則添加上以代碼。
            4 查找
            # Virtual hosts
            #Include conf/extra/httpd-vhosts.conf
            改為
            # Virtual hosts
            Include conf/extra/httpd-vhosts.conf
            5 查找

            DirectoryIndex index.html

            改為

            DirectoryIndex index.html index.html.var index.php

            6 查找
            改為 (www為apache應(yīng)用目錄)
            7 查找 DocumentRoot "E:/WAMP/Apache2.2/htdocs"
            改為 DocumentRoot "E:/WAMP/www"
            8 查找 ServerRoot "E:/XXX/Apache2.2" (apache安裝目錄)
            改為 ServerRoot "E:/WAMP/Apache2.2" (apache服務(wù)器目錄)
            9 x.test.com x.test1.com x.test2.com
            分別輸入以上三個(gè)進(jìn)行測(cè)試

            網(wǎng)站名稱:winxpapache用php建本地虛擬主機(jī)的方法
            網(wǎng)頁(yè)路徑:http://www.jbt999.com/news/201301.html

            網(wǎng)站建設(shè)、網(wǎng)絡(luò)推廣公司-創(chuàng)新互聯(lián),是專注品牌與效果的網(wǎng)站制作,網(wǎng)絡(luò)營(yíng)銷seo公司;服務(wù)項(xiàng)目有虛擬主機(jī)

            廣告

            聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:[email protected]。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

            商城網(wǎng)站建設(shè)

              <del id="d4fwx"><form id="d4fwx"></form></del>
              <del id="d4fwx"><form id="d4fwx"></form></del><del id="d4fwx"><form id="d4fwx"></form></del>

                    <code id="d4fwx"><abbr id="d4fwx"></abbr></code>
                  • 日本wwwxxxx | 精品乱子伦一区二区三区在线播放 | 美女乱伦免费 | 熟女国产精品 | 东京热一二三区 |