久久久久久久性爱潮,国产又粗又猛又爽又黄下载视频,尤物国产在线一区视频,欧美日本国产在线不卡

<sup id="4uqqy"><ol id="4uqqy"></ol></sup>
  • <th id="4uqqy"></th>

      • <strike id="4uqqy"><nobr id="4uqqy"><ins id="4uqqy"></ins></nobr></strike><sup id="4uqqy"></sup><strong id="4uqqy"><u id="4uqqy"></u></strong>
        <sub id="4uqqy"></sub>

          綠色資源網(wǎng):您身邊最放心的安全下載站! 最新軟件|熱門(mén)排行|軟件分類|軟件專題|廠商大全

          綠色資源網(wǎng)

          技術(shù)教程
          您的位置:首頁(yè)服務(wù)器類Web服務(wù)器 → Win2003+Wamp5 V2.1配置VPS環(huán)境

          Win2003+Wamp5 V2.1配置VPS環(huán)境

          我要評(píng)論 2015/02/27 00:24:50 來(lái)源:綠色資源網(wǎng) 編輯:濟(jì)憶 [ ] 評(píng)論:0 點(diǎn)擊:392次

          1、安裝wampserver

          利用wampserver安裝包直接進(jìn)行環(huán)境配置步驟簡(jiǎn)單,對(duì)于沒(méi)有任何基礎(chǔ)的童鞋們也可以進(jìn)行自己配置。

          wamp5V2.1包:PHP 5.3.3、mysql 5.5.8、Apache 2.2.17、PHPMyAdmin 3.2.0.1

          下載地址:  http://www.kiwanis-srv.org/soft/1807.html

          下載成功之后,直接雙擊安裝,過(guò)程中選擇安裝到指定目錄即可。這里安裝到:D:\wamp

          注意:如果之前沒(méi)有安裝過(guò)apache、mysql之類的,直接一直點(diǎn)擊 Next(下一步) 直到安裝成功即可。如果前面有安裝過(guò),最好先卸載,然后再進(jìn)行wamp包的安裝。

          安裝好之后右下角將會(huì)出現(xiàn)下面的圖片,右鍵點(diǎn)擊:

           

          這樣就已經(jīng)安裝好了,apache、mysql、php、phpmadmin等,可以通過(guò)瀏覽器訪問(wèn):http://localhost/ 查看安裝后效果。

          如果需要開(kāi)啟偽靜態(tài)支持:

           

          打開(kāi)apache的配置文件httpd.conf
          1.把#LoadModule rewrite_module modules/mod_rewrite.so前面的#去掉。
          2.找到
          #
          # AllowOverride controls what directives may be placed in .htaccess files.
          # It can be “All”, “None”, or any combination of the keywords:
          # Options FileInfo AuthConfig Limit
          #
          AllowOverride None
          把 AllowOverride None 改為 AllowOverride All
          最后就是重啟一下apache服務(wù)器使配置生效,這樣就支持.htaccess文件了

           

          接著進(jìn)行域名的綁定,當(dāng)然,域名必須已經(jīng)解析到你當(dāng)前VPS。

          2、配置多站點(diǎn):

          打開(kāi)bin\apache\Apache2.2.17\conf\httpd.conf

          第61行:LoadModule alias_module modules/mod_alias.so 前面是否有#,如果有,去除這句話前面的# (開(kāi)啟alias的支持)

          第446行:#Include conf/extra/httpd-vhosts.conf 去掉前面的# (使apache能夠讀取extra/httpd-vhosts.conf 文件)

          打開(kāi)bin\apache\Apache2.2.17\conf\extra\httpd-vhosts.conf

          刪除底部默認(rèn)的一些配置:

          之后根據(jù)下述添加多站點(diǎn)的方式,選擇一種自己進(jìn)行添加:

           

          1、多IP多端口多站點(diǎn)配置

          Listen 172.20.30.40:80
          Listen 172.20.30.40:8080
          Listen 172.20.30.50:80
          Listen 172.20.30.50:8080

          <VirtualHost 172.20.30.40:80>
          DocumentRoot /www/example1-80
          ServerName www.example1.com
          < /VirtualHost>

          <VirtualHost 172.20.30.40:8080>
          DocumentRoot /www/example1-8080
          ServerName www.example1.com
          < /VirtualHost>

          <VirtualHost 172.20.30.50:80>
          DocumentRoot /www/example2-80
          ServerName www.example1.org
          < /VirtualHost>

          <VirtualHost 172.20.30.50:8080>
          DocumentRoot /www/example2-8080
          ServerName www.example2.org
          < /VirtualHost>
          ————————————————————

          2、多IP單端口多站點(diǎn)
          ———————————————————–
          <VirtualHost 192.168.1.1:80>
          DocumentRoot “/usr/local/apache/a”
          ServerName www.a.com #網(wǎng)站根目錄
          ServerAlias a.com #做出響應(yīng)的域名,其實(shí)也就是這里列出的域名,也指向前面設(shè)置的網(wǎng)站根目錄
          DirectoryIndex index.html index.php
          < /VirtualHost>

          NameVirtualHost 192.168.1.2:80

          <VirtualHost 192.168.1.2:80>
          DocumentRoot “/usr/local/apache/b”
          ServerName www.b.com
          ServerAlias b.com
          DirectoryIndex index.php
          < /VirtualHost>

          <VirtualHost 192.168.1.2:80>
          DocumentRoot “/usr/local/apache/c”
          ServerName www.c.com
          ServerAlias c.com
          DirectoryIndex index.php
          < /VirtualHost>
          —————————————————————

          3、單IP單端口多站點(diǎn)
          —————————————————————
          Listen 80

          NameVirtualHost 192.168.1.15 #接收請(qǐng)求的IP地址

          <VirtualHost 192.168.1.15> #綁定的ip

          ServerAdmin test@test.com #管理員郵箱
          DocumentRoot “D:/Inetpub/www/maidou/” #網(wǎng)站目錄
          ServerName www.test.com #主機(jī)名(域名)

          DirectoryIndex index.php #主目錄默認(rèn)頁(yè)

          ServerAlias test.other.com admin.other.com #做出響應(yīng)的域名

          ErrorLog logs/error_log.log #錯(cuò)誤日志
          CustomLog logs/custom.log common #用戶日志
          <Directory “D:/Inetpub/www/maidou/”>
          Options Indexes FollowSymLinks
          AllowOverride All #AllowOverride指明Apache服務(wù)器是否加載.htacess
          Order allow,deny
          Allow from all
          < /Directory>

          </VirtualHost>

          # 多臺(tái)可以再添加
          <VirtualHost 192.168.1.15>
          DocumentRoot “D:/Inetpub/www/other/”
          ServerName www.other.com

          <Directory “D:/Inetpub/www/other/”>
          Options Indexes FollowSymLinks
          AllowOverride All
          Order allow,deny
          Allow from all
          < /Directory>
          < /VirtualHost>

          根據(jù)自己的需要設(shè)置即可,除了DocumentRoot、ServerName是必須的外,其他幾個(gè)設(shè)置都可以不要。

           

          3、重啟apache,搞定

          注意:實(shí)際配置時(shí),可以一邊配置一邊查看效果,以免配置過(guò)程出現(xiàn)錯(cuò)誤,最后又不容易找到。

          關(guān)鍵詞:Win2003,wampserver,VPS

          閱讀本文后您有什么感想? 已有 人給出評(píng)價(jià)!

          • 16 歡迎喜歡
          • 1 白癡
          • 1 拜托
          • 1 哇
          • 0 加油
          • 13 鄙視