2.在conf/extra找到httpd-vhosts.conf文件 ,添加" />

国产成人精品无码青草_亚洲国产美女精品久久久久∴_欧美人与鲁交大毛片免费_国产果冻豆传媒麻婆精东

15158846557 在線咨詢 在線咨詢
15158846557 在線咨詢
所在位置: 首頁 > 營銷資訊 > 網(wǎng)站運營 > apache2.4虛擬主機設(shè)置

apache2.4虛擬主機設(shè)置

時間:2023-07-01 18:48:01 | 來源:網(wǎng)站運營

時間:2023-07-01 18:48:01 來源:網(wǎng)站運營

apache2.4虛擬主機設(shè)置:1.首先找到apache根目錄下的conf目錄,打開httpd.conf配置文件,找到# Virtual hosts,啟用Include conf/extra/httpd-vhosts.conf虛擬主機配置文件

2.在conf/extra找到httpd-vhosts.conf文件 ,添加主機配置

<VirtualHost 127.0.0.1:80> DocumentRoot "e:/php/skyphp" DirectoryIndex index.html index.htm index.php/skyphp <Directory /> AllowOverride None Require all granted </Directory></VirtualHost>注意:Require all granted是2.4及以上的新配置,否則無法正常啟動。

3.在c盤找到本地DNS映射文件 hosts,打開,添加域名映射,如:

127.0.0.1 http://www.sky.com


4.重啟apache,瀏覽器訪問http://www.sky.com測試是否配置成功。

關(guān)鍵詞:設(shè)置,主機,虛擬

74
73
25
news

版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。

為了最佳展示效果,本站不支持IE9及以下版本的瀏覽器,建議您使用谷歌Chrome瀏覽器。 點擊下載Chrome瀏覽器
關(guān)閉