国产91福利在线观看,漂亮女保姆电影,欧美高h视频,青青青在线播放,96pao国产成视频永久免费,2022精品国偷自产免费观看,天天射天天爽

龍巖易富通網(wǎng)絡(luò)科技有限公司

龍巖小程序開發(fā),龍巖分銷系統(tǒng)

apache禁止訪問服務(wù)器IP進入默認網(wǎng)站

2015.09.10 | 1277閱讀 | 0條評論 | 通用代碼

禁止訪問服務(wù)器IP,進入默認的網(wǎng)站,

例如:

輸入http://服務(wù)器IP地址 ,回車后默認打開網(wǎng)站。


處理方法:


[php]

<VirtualHost *:80>

DocumentRoot "/var/www/html"

ServerName www.test.com

<Directory "/var/www/html">

deny from all

</Directory>

</VirtualHost>

[/php]


或者指定IP地址

[php]

<VirtualHost IP地址:80>

DocumentRoot "/var/www/html"

ServerName www.test.com

<Directory "/var/www/html">

deny from all

</Directory>

</VirtualHost>

[/php]


贊 (

發(fā)表評論