時(shí)間:2023-07-15 01:18:01 | 來(lái)源:網(wǎng)站運(yùn)營(yíng)
時(shí)間:2023-07-15 01:18:01 來(lái)源:網(wǎng)站運(yùn)營(yíng)
1 Apache HTTP Sever的安裝和多個(gè)虛擬主機(jī)的創(chuàng)建:鏈接:https://pan.baidu.com/s/1No9UIRYJF3psrpUKu9Ffig 提取碼:rfkr
注意?Define SRVROOT "D:/Program_Files/httpd-2.4.46-win64-VS16/Apache24"??ServerName localhost:80
# 1-使用cmd終端,用管理員的方式打開(kāi)終端# 2-找到服務(wù)器的bin目錄# 3- 輸入 如下指令httpd.exe -k install?# 雙擊如下文件,啟動(dòng)服務(wù)器ApacheMonitor.exe
#virtual hosts
將下面一行#Include conf/extra/httpd-vhosts.conf
的# 注釋刪掉,使其生效,保存退出。<VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot "/usr/local/apache/docs/dummy-host.example.com" ServerName dummy-host.example.com ServerAlias www.dummy-host.example.com ErrorLog "logs/dummy-host.example.com-error_log" CustomLog "logs/dummy-host.example.com-access_log" common</VirtualHost>
# 域名直接訪問(wèn)默認(rèn)站點(diǎn) htdocs<VirtualHost *:80> ServerAdmin 1390128154@qq.com DocumentRoot "${SRVROOT}/htdocs" ServerName www.huaguoshan66.tech ErrorLog "logs/www.huaguoshan.tech-error.log" CustomLog "logs/www.huaguoshan.tech-access.log" common</VirtualHost>?# 域名直接訪問(wèn)默認(rèn)站點(diǎn) htdocs下的子站點(diǎn) www.wukong.com<VirtualHost *:80> ServerAdmin 1390128154@qq.com DocumentRoot "${SRVROOT}/htdocs/www.wukong.com" ServerName wukong66.com ErrorLog "logs/www.wukong.com-error.log" CustomLog "logs/www.wukong.com-access.log" common</VirtualHost>??# 域名直接訪問(wèn)默認(rèn)站點(diǎn) htdocs外的其他站點(diǎn) www.zhubajie.com<VirtualHost *:80> ServerAdmin 1390128154@qq.com DocumentRoot "${SRVROOT}/www.zhubajie.com" ServerName zhubajie66.com ErrorLog "logs/www.zhubajie.com-error.log" CustomLog "logs/www.zhubajie.com-access.log" common <Directory "${SRVROOT}/www.zhubajie.com"> Require local </Directory></VirtualHost>
127.0.0.1 www.huaguoshan66.tech127.0.0.1 wukong66.com127.0.0.1 zhubajie66.com
關(guān)鍵詞:虛擬,主機(jī),創(chuàng)建,安裝
客戶(hù)&案例
營(yíng)銷(xiāo)資訊
關(guān)于我們
客戶(hù)&案例
營(yíng)銷(xiāo)資訊
關(guān)于我們
微信公眾號(hào)
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。