2014-07-20 34 views

回答

0

我管理的,這個線程的幫助:https://serverfault.com/questions/511...uses-the-ip-ad

最後,我加入到這個/etc/apache2/sites-available/default.conf:

 <Directory /var/www/> 

RewriteEngine On 
RewriteCond %{HTTP_HOST} ^xx\.xx\.xx\.xx 
RewriteRule ^(.*)$ - [F,L] 

[...] 
     </Directory> 

現在,當直接輸入我的IP地址時,我有一個403錯誤,我只能通過輸入域名訪問我的網站。

謝謝大家。

相關問題