最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Apache為mysql以及自己的項(xiàng)目設(shè)置虛擬路徑

 更新時(shí)間:2009年12月11日 16:26:20   作者:  
Apache為mysql以及自己的項(xiàng)目設(shè)置虛擬路徑
1.Apache2.2\conf\httpd.conf中釋放:
Include conf/extra/httpd-vhosts.conf(去掉前面的#)
2.httpd.conf中增加
<Directory "E:/work/test"> #項(xiàng)目文件夾DWM目錄,注意不要使用中文定義目錄與文件夾
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options FollowSymLinks
#
# 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
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
<Directory "C:/phpMyAdmin"> #phpMyAdmin的安裝路徑
#
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# 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
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
3.在文件Apache2.2\conf\extra\httpd-vhosts.conf中增加:
復(fù)制代碼 代碼如下:

<VirtualHost *:80> #放在第一個(gè)
ServerAdmin webmaster@dummy-host2.ies.inventec
DocumentRoot "D:\work\test"
ServerName test
ErrorLog "logs/dummy-host2.ies.inventec-error.log"
CustomLog "logs/dummy-host2.ies.inventec-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.ies.inventec
DocumentRoot "C:\Program Files\phpMyAdmin-2.11.4"
ServerName mysql
ErrorLog "logs/dummy-host2.ies.inventec-error.log"
CustomLog "logs/dummy-host2.ies.inventec-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.ies.inventec
DocumentRoot "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs"
ServerName localhost
ErrorLog "logs/dummy-host2.ies.inventec-error.log"
CustomLog "logs/dummy-host2.ies.inventec-access.log" common
</VirtualHost>

4.在windows\system32\drivers\etc\hosts檔中增加:(是hosts檔,不是hosts.msn之類的)
127.0.0.1 test
127.0.0.1 mysql
5.在瀏覽器中輸入:
http://mysql/index.php //查看數(shù)據(jù)庫設(shè)置是否成功
http://test/index.php //查看項(xiàng)目路徑設(shè)置是否成功

相關(guān)文章

  • linux安裝git的方法步驟

    linux安裝git的方法步驟

    這篇文章主要介紹了linux安裝git的方法步驟,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧
    2018-12-12
  • 詳解Linux 主機(jī)網(wǎng)絡(luò)接入配置

    詳解Linux 主機(jī)網(wǎng)絡(luò)接入配置

    這篇文章主要介紹了詳解Linux 主機(jī)網(wǎng)絡(luò)接入配置的相關(guān)資料,希望通過本文能幫助到大家,讓大家實(shí)現(xiàn)網(wǎng)絡(luò)接入配置的功能,需要的朋友可以參考下
    2017-10-10
  • Linux下淺談crond與crontab的命令用法

    Linux下淺談crond與crontab的命令用法

    本篇文章主要介紹了Linux下淺談crond與crontab的用法,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧
    2017-06-06
  • windows apache多端口虛擬主機(jī)配置方法

    windows apache多端口虛擬主機(jī)配置方法

    有很多朋友喜歡在windows下使用apache作為web服務(wù)器,有時(shí)候想用非80端口提供服務(wù),因?yàn)槲磦浒赣蛎际欠饬?0端口,提供下載的時(shí)候可以用別的端口了,這里簡(jiǎn)單分享下,方便需要的朋友
    2013-03-03
  • 淺談Linux下免密碼切換到root用戶當(dāng)注意的問題

    淺談Linux下免密碼切換到root用戶當(dāng)注意的問題

    下面小編就為大家?guī)硪黄獪\談Linux下免密碼切換到root用戶當(dāng)注意的問題。小編覺得挺不錯(cuò)的?,F(xiàn)在就分享給大家。也給大家做個(gè)參考。一起跟隨小編過來看看吧
    2016-12-12
  • Apache Web服務(wù)器的完全安裝指南

    Apache Web服務(wù)器的完全安裝指南

    本文討論如何安裝支持mod_perl、mod_ssl及php的apache web服務(wù)器,并安裝webalizer實(shí)現(xiàn)對(duì)web訪進(jìn)行日志分析。手把手引導(dǎo)初學(xué)者編輯一個(gè)安全、功能完備的web服務(wù)器系統(tǒng)。
    2010-12-12
  • vsftp上傳553 Could not create file錯(cuò)誤解決

    vsftp上傳553 Could not create file錯(cuò)誤解決

    本篇文章給大家分享了在vsftp上傳文件的時(shí)候出現(xiàn)了553 Could not create file錯(cuò)誤,針對(duì)這個(gè)錯(cuò)誤我們給出了解決辦法,一起學(xué)習(xí)下。
    2017-12-12
  • 基于?Apache?的?httpd?文件服務(wù)器詳解

    基于?Apache?的?httpd?文件服務(wù)器詳解

    httpd?HTTP?Daemon,超文本傳輸協(xié)議守護(hù)進(jìn)程的簡(jiǎn)稱,運(yùn)行于網(wǎng)頁服務(wù)器后臺(tái),等待傳入服務(wù)器請(qǐng)求的軟件,這篇文章主要介紹了基于?Apache?的?httpd?文件服務(wù)器,需要的朋友可以參考下
    2024-07-07
  • Linux系統(tǒng)下Tomcat使用80端口的方法

    Linux系統(tǒng)下Tomcat使用80端口的方法

    這篇文章主要給大家介紹了關(guān)于Linux系統(tǒng)下Tomcat使用80端口的相關(guān)資料,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家學(xué)習(xí)或者使用Tomcat具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面來一起學(xué)習(xí)學(xué)習(xí)吧
    2019-12-12
  • XShell免費(fèi)版的安裝配置教程及使用保姆級(jí)教程

    XShell免費(fèi)版的安裝配置教程及使用保姆級(jí)教程

    XShell?是一種流行且簡(jiǎn)單的網(wǎng)絡(luò)程序,旨在模擬虛擬終端,這篇文章主要介紹了XShell免費(fèi)版的安裝配置教程以及使用教程,需要的朋友可以參考下
    2022-08-08

最新評(píng)論

逊克县| 花莲县| 辉县市| 巩留县| 抚顺县| 望江县| 清河县| 大余县| 岱山县| 建始县| 舟曲县| 台湾省| 张家口市| 中西区| 尼勒克县| 望都县| 资兴市| 宁化县| 赫章县| 庐江县| 屯门区| 盘山县| 丹凤县| 汾阳市| 黔江区| 江西省| 建瓯市| 北碚区| 陈巴尔虎旗| 永新县| 荣成市| 陆良县| 民乐县| 龙南县| 清原| 永定县| 诸城市| 新邵县| 准格尔旗| 东丰县| 微山县|