Virtual Host: 如何在同一個 IP (伺服器)上以不同的 Domain Name 架設多個網站
分類標籤: Apache HTTP Server
Linux系統管理
|
October 20, 2009 08:42PM 發表文章數: 1,006 |
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /www/example1
ServerName www.example1.com
# Other directives here / 可於此加入其他所需目錄,例如 CGI Script 的目錄
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /www/example2
ServerName www.example2.org
# Other directives here
</VirtualHost>