史萊姆論壇

史萊姆論壇 (http://forum.slime.com.tw/)
-   一般電腦疑難討論區 (http://forum.slime.com.tw/f17.html)
-   -   請教一個網路架站的問題 (http://forum.slime.com.tw/thread125338.html)

leeyute 2004-09-21 11:32 AM

如果你的主機上有兩張網卡的話...
如 192.168.0.200 and 140.96.175.2

在httpd.conf 中 搜尋 Listen

原本為Listen 0.0.0.0:80 修改成 Listen 140.96.175.2:80 就可以了

=============================================
根本的方法就是在httpd.conf 的設定檔中
尋找 你放網頁的根目錄...因為你是windows base的
所以 網頁根目錄可能不是原來的 /var/www/html
請依照你的情狀更改....

我以原linux的設定檔來說明
<Directory "/var/www/html">
Options Indexs FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

請在Allow from all 上方加入 Deny from 192.168.0.
這樣來自192.168.0.0/24的IP都無法存取你的網頁....

============================================

Omar Lin 2004-09-22 05:27 PM

引用:

作者: leeyute
如果你的主機上有兩張網卡的話...
如 192.168.0.200 and 140.96.175.2

在httpd.conf 中 搜尋 Listen

原本為Listen 0.0.0.0:80 修改成 Listen 140.96.175.2:80 就可以了

=============================================
根本的方法就是在httpd.conf 的設定檔中
尋找 你放網頁的根目錄...因為你是windows base的
所以 網頁根目錄可能不是原來的 /var/www/html
請依照你的情狀更改....

我以原linux的設定檔來說明
<Directory "/var/www/html">
Options Indexs FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

請在Allow from all 上方加入 Deny from 192.168.0.
這樣來自192.168.0.0/24的IP都無法存取你的網頁....

============================================

感謝您的幫忙喔~~ :D


所有時間均為台北時間。現在的時間是 06:46 AM

Powered by vBulletin® 版本 3.6.8
版權所有 ©2000 - 2025, Jelsoft Enterprises Ltd.

『服務條款』

* 有問題不知道該怎麼解決嗎?請聯絡本站的系統管理員 *


SEO by vBSEO 3.6.1