服務器,linux學習筆記

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> 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章