Apache ServerAlias

| | Comments (0)

ServerAlias 這個參數還滿好用的, 之前還傻傻地用了多個 VirtualHost block 來表示.

<VirtualHost *>
    ServerName server.domain.com
    ServerAlias server server2.domain.com server2
    ...
</VirtualHost>

<VirtualHost *:80>
     ServerName pool.ntp.org
     ServerAlias *.pool.ntp.org
     Redirect permanent / http://www.pool.ntp.org/
</VirtualHost>

Leave a comment

November 2008

Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            

About this Entry

This page contains a single entry by Pank published on January 13, 2006 12:25 AM.

Kaspersky Anti-Hacker was the previous entry in this blog.

Yahoo!奇摩知識+ - 100大難題大挑戰 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.