Rumah > php教程 > php手册 > teks badan

【PHP编程之路

WBOY
Lepaskan: 2016-06-06 19:59:00
asal
1084 orang telah melayarinya

1.开启“虚拟目录配置文件”httpd-vhosts.conf 文件路径:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf 将以下配置: # Virtual hosts# Include conf/extra/httpd-vhosts.conf 改为: # Virtual hostsInclude conf/extra/httpd-vhosts.conf 2

1.开启“虚拟目录配置文件”httpd-vhosts.conf

文件路径:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf

将以下配置:

# Virtual hosts
# Include conf/extra/httpd-vhosts.conf
Salin selepas log masuk

改为:

# Virtual hosts
Include conf/extra/httpd-vhosts.conf
Salin selepas log masuk

2.设置虚拟目录可访问

文件路径:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf

将以下配置:

<directory></directory>
    AllowOverride none
    Require all denied
Salin selepas log masuk
改为:
<directory></directory>
    AllowOverride none
Salin selepas log masuk

3.添加虚拟目录

文件路径:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf

添加虚拟目录

<virtualhost>
    ServerAdmin webmaster@web.shop.com
    DocumentRoot "D:/_HelloWorld/01_MyProjects/06_PHP/01_Web/Product/Source/Shop"
    ServerName web.shop.com
    ErrorLog "logs/web.shop.com-error.log"
    CustomLog "logs/web.shop.com-access.log" common
</virtualhost>
Salin selepas log masuk

4.重启apache

5.在浏览器中输入web.shop.com

【PHP编程之路

作者:Jackson 出处:http://blog.csdn.net/jackson0714/article/details/44139893

Label berkaitan:
sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Cadangan popular
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan
Tentang kita Penafian Sitemap
Laman web PHP Cina:Latihan PHP dalam talian kebajikan awam,Bantu pelajar PHP berkembang dengan cepat!