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>