線上書籍

Home

VirtualBox

# -----------------------------------------------------------------------
<VirtualHost *:80>
ServerAdmin admin@mail.hbes.chc.edu.tw
ServerName dynatea.hbes.chc.edu.tw
DocumentRoot  /var/www/dynatea/
</VirtualHost>
# -----------------------------------------------------------------------

# -----------------------------------------------------------------------
# 原mail首頁
# -----------------------------------------------------------------------
<VirtualHost *:80>
ServerAdmin admin@mail.hbes.chc.edu.tw
ServerName mail.hbes.chc.edu.tw
DocumentRoot    /var/www/mail/
</VirtualHost>
# -----------------------------------------------------------------------

# -----------------------------------------------------------------------
<VirtualHost *:80>
ServerAdmin admin@mail.hbes.chc.edu.tw
ServerName ftp.hbes.chc.edu.tw
DocumentRoot    /var/www/ftp/
<Directory /srv/ftp/anonymous>
    Options Indexes
</Directory>
</VirtualHost>
# -----------------------------------------------------------------------


# -----------------------------------------------------------------------
# g2 gallery 2.31
# 限制在校內連線
# -----------------------------------------------------------------------
<VirtualHost *:80>
ServerAdmin admin@mail.hbes.chc.edu.tw
ServerName gallery2.hbes.chc.edu.tw
DocumentRoot    /var/www/gallery2/

<Directory /var/www/gallery2>
    Options FollowSymLinks MultiViews
    # AllowOverride None
    AllowOverride All
    Order allow,deny
    Deny from All                                             ----> 先阻擋全部
    #allow from all
    allow from 163.23.   172.20.    192.168.
    # 校內 ipv6 網段
    Allow from 2001:288:56ab::1/48                ----> 允許 學校的 ipv6 網段 連線
    # 學校 真實 ip
    Allow from 163.23.108.64/26                     ----> 允許 學校 真實 ip 連線
    # 學校內部 ip
    Allow from 172.20.1.0/24                           ----> 允許 學校內部 ip 連線
                                                                       ----> 這樣就能限制外面,只能在校內連線

    #
    #Options FollowSymLinks
    #AllowOverride Limit Options FileInfo
</Directory>
</VirtualHost>