咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

apache本地域名ip重定向vhosts

2016-08-08 07:11:08 12646次

apache本地域名ip重定向,使本机通过指定域名访问到指定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、系统盘C:WindowsSystem32driversetchosts  :   添加 127.0.0.1       appjh51.com


首页
最新活动
个人中心