国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

Apache為mysql以及自己的項目設置虛擬路徑

2019-11-02 16:01:08
字體:
來源:轉載
供稿:網友
1.Apache2.2/conf/httpd.conf中釋放:

Include conf/extra/httpd-vhosts.conf(去掉前面的#)

2.httpd.conf中增加

<Directory "E:/work/test"> #項目文件夾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中增加:

復制代碼 代碼如下:

<VirtualHost *:80> #放在第一個

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"
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 建水县| 九寨沟县| 大冶市| 鄂州市| 娱乐| 汉川市| 兴城市| 聂荣县| 昌图县| 任丘市| 绥化市| 尉氏县| 邵东县| 隆尧县| 邻水| 广州市| 沈阳市| 卢龙县| 六枝特区| 利津县| 萨迦县| 贵港市| 永寿县| 澎湖县| 宁化县| 县级市| 深州市| 建德市| 道孚县| 石棉县| 陆川县| 罗源县| 无锡市| 高邑县| 清镇市| 晋州市| 和平区| 介休市| 巴里| 岗巴县| 西和县|