第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

多站點(diǎn)配置問題

老師講的版本比較老,新版本語言有些變化,請(qǐng)問最新版本怎樣進(jìn)行多站點(diǎn)配置

正在回答

6 回答

我提示這個(gè)

The requested URL /legacy was not found on this server.

0 回復(fù) 有任何疑惑可以回復(fù)我~

怎么還是不行啊

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

Promise丶澄明

如果按照上面的配置后還是不行的話,可能你的hosts文件被你不小心加了后綴了,它是沒有后綴的
2017-08-08 回復(fù) 有任何疑惑可以回復(fù)我~

超級(jí)感謝,不過要提醒的是很多人做不出來,是因?yàn)橐怨芾韱T身份打開C:\Windows\System32\drivers\etc 的hosts文件,修改成功后即可以啦,我一直用sublime打開它,以為自己保存了,結(jié)果瞎了一整天

0 回復(fù) 有任何疑惑可以回復(fù)我~

終于成功了,感謝

0 回復(fù) 有任何疑惑可以回復(fù)我~

1. 打開C:\wamp64\bin\apache\apache2.4.18\conf\extra\httpd-vhosts.conf, 在這里配置兩個(gè)站點(diǎn),修改后文件如下

<VirtualHost *:80>

ServerName test01.com

DocumentRoot "H:\Demo\test01"

<Directory ?"H:\Demo\test01">

Options +Indexes +FollowSymLinks +MultiViews

AllowOverride All

Require local

</Directory>

</VirtualHost>


<VirtualHost *:80>

ServerName test02.com

DocumentRoot "H:\Demo\test02"

<Directory ?"H:\Demo\test02">

Options +Indexes +FollowSymLinks +MultiViews

AllowOverride All

Require local

</Directory>

</VirtualHost>


2. httpd.conf 中取消如下的注釋,即去除 # 號(hào) (?Include conf/extra/httpd-vhosts.conf )

> 最新版本中,默認(rèn)就是沒有被注釋的


3. httpd.conf 中,將 `Require local `注釋掉,即添加# 號(hào); 并添加 `Require all granted`

>★★?這里與視頻中不一樣,因?yàn)榘姹静煌瑢?dǎo)致。


4. 重啟服務(wù)


5. C:\Windows\System32\drivers\etc 的hosts文件中,添加

127.0.0.1 localhost

127.0.0.1 test01.com

127.0.0.1 test02.com

6. 測(cè)試http://test02.com/ 和 http://test01.com/ 可以訪問。


0 回復(fù) 有任何疑惑可以回復(fù)我~

1. 打開C:\wamp64\bin\apache\apache2.4.18\conf\extra\httpd-vhosts.conf, 在這里配置兩個(gè)站點(diǎn),修改后文件如下

<VirtualHost *:80>

ServerName test01.com

DocumentRoot "H:\Demo\test01"

<Directory ?"H:\Demo\test01">

Options +Indexes +FollowSymLinks +MultiViews

AllowOverride All

Require local

</Directory>

</VirtualHost>


<VirtualHost *:80>

ServerName test02.com

DocumentRoot "H:\Demo\test02"

<Directory ?"H:\Demo\test02">

Options +Indexes +FollowSymLinks +MultiViews

AllowOverride All

Require local

</Directory>

</VirtualHost>


2. httpd.conf 中取消如下的注釋,即去除 # 號(hào) (?Include conf/extra/httpd-vhosts.conf )

> 最新版本中,默認(rèn)就是沒有被注釋的


3. httpd.conf 中,將 `Require local `注釋掉,即添加# 號(hào); 并添加 `Require all granted`

>★★?這里與視頻中不一樣,因?yàn)榘姹静煌瑢?dǎo)致。


4. 重啟服務(wù)


5. C:\Windows\System32\drivers\etc 的hosts文件中,添加

127.0.0.1 localhost

127.0.0.1 test01.com

127.0.0.1 test02.com

6. 測(cè)試http://test02.com/ 和 http://test01.com/ 可以訪問。


1 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
PHP入門篇
  • 參與學(xué)習(xí)       456335    人
  • 解答問題       6589    個(gè)

PHP入門教程輕松學(xué)習(xí),行業(yè)大牛幫您快速掌握PHP編程基礎(chǔ)知識(shí)。

進(jìn)入課程

多站點(diǎn)配置問題

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)