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

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

localhost訪問(wèn)

1、我更改了網(wǎng)站根目錄;并在根目錄下新建了test.php;瀏覽器localhost/test.php可以成功; 2、新建了兩個(gè)站點(diǎn)后;瀏覽器locahost/test.php不可以,提示The requested URL /test.php was not found on this server 但是自己新建的兩個(gè)站點(diǎn)可以用域名訪問(wèn),請(qǐng)指教問(wèn)題出在哪里

正在回答

3 回答

在httpd-vhost.conf里面插入

<VirtualHost *:80>

? ? ServerAdmin webmaster@dummy-host2.example.com

? ? DocumentRoot "你的站點(diǎn)目錄"

? ? ServerName localhost

? ? ErrorLog "logs/dummy-host2.example.com-error.log"

? ? CustomLog "logs/dummy-host2.example.com-access.log" common

</VirtualHost>

然后在httpd.conf里面

# Virtual hosts

#Include conf/extra/httpd-vhosts.conf

改為

# Virtual hosts

Include conf/extra/httpd-vhosts.conf

接著重啟apacha試試

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

CNed丶

嗯 @大施虐者 的解決辦法,也可行的
2015-12-09 回復(fù) 有任何疑惑可以回復(fù)我~

按照你新建的兩個(gè)站點(diǎn)再建一個(gè)叫作localhost的站點(diǎn)唄

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

CNed丶

在httpd.conf里面配置嗎 但還是錯(cuò)的
2015-12-09 回復(fù) 有任何疑惑可以回復(fù)我~
#2

CNed丶 回復(fù) CNed丶

是httpd-vhost.conf但還是錯(cuò)的
2015-12-09 回復(fù) 有任何疑惑可以回復(fù)我~
#3

CNed丶 回復(fù) CNed丶

已解決,在課程的評(píng)論里
2015-12-09 回復(fù) 有任何疑惑可以回復(fù)我~

localhost再重新配置一下,

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

舉報(bào)

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

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

進(jìn)入課程

localhost訪問(wèn)

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

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

幫助反饋 APP下載

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

公眾號(hào)

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