apache本地域名ip重定向vhosts
2016-08-08 07:11:08
12447
apache本地域名ip重定向,使本機(jī)通過指定域名訪問到指定ip路徑。
1、apache配置apache/conf/httpd.conf : 開啟配置 Include conf/extra/httpd-vhosts.conf
2、apache配置apache/conf/extra/httpd-vhosts.conf :
<VirtualHost *:80>
ServerAdmin webmaster@appjh51.ingenidev
DocumentRoot "D:/WWW/App_wxjh"
ServerName appjh51.com
ErrorLog "logs/appjh51.log"
CustomLog "logs/appjh51.log" common
</VirtualHost>
3、系統(tǒng)盤C:WindowsSystem32driversetchosts : 添加 127.0.0.1 appjh51.com
會(huì)員登錄
賬號(hào)登錄還沒有賬號(hào)?立即注冊