wampserver3.0.6版本怎么設(shè)置虛擬主機(jī)?
時間:2024-01-12 09:36:01 | 來源:網(wǎng)站運(yùn)營
時間:2024-01-12 09:36:01 來源:網(wǎng)站運(yùn)營
wampserver3.0.6版本怎么設(shè)置虛擬主機(jī)?:開啟虛擬主機(jī)是在conf/httpd.conf里面的1
#Include conf/extra/httpd-vhosts.conf
把#去掉就開啟虛擬主機(jī)了。
虛擬主機(jī)配置:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#配置自己的虛擬主機(jī)
#網(wǎng)站目錄,如果在www目錄下的php目錄,下面就填寫F:/www/phpp
DocumentRoot "F:/www"
#域名
ServerName localhost
#這里配置歡迎首頁面
DirectoryIndex index.html index.htm index.php
Options FollowSymLinks
#不允許別人修改我們的頁面
AllowOverride None
#設(shè)置訪問權(quán)限
order allow,deny
Allow from all
關(guān)鍵詞:設(shè)置,虛擬,主機(jī),版本