Ubuntu14下禁止通過IP來訪問web服務
其他linux系統的Apache的配置檔案是httpd.conf 而並非Ubuntu下的
NameVirtualHost 145.32.22.52:80
<virtualhost 145.32.22.52:80>
ServerName 145.32.22.52
<Location />
Order Allow,Deny
Deny from all
</Location>
</virtualhost>
<virtualhost 145.32.22.52:80>
ServerName www.baidu.com
DocumentRoot /var/www/html/3d //網站路徑
</virtualhost>
http://www.tecbbs.com/thread-2556-1-1.html