1:绑定域名到IP
添加A记录到对应IP地址,apache配置文件httpd.conf 添加内容
NameVirtualHost 123.53.214.109 //对应IP
<VirtualHost 123.53.214.109>
DocumentRoot "D:\phpStudy\WWW"
ServerName ip.greenzyw.com
DirectoryIndex index.php index.html default.php index.html.var
</VirtualHost>