我的機器沒有架設dns
dnsg是代管的...
我已經把三個dns的a都設定到同一個對應ip
但是不管如何使用host name連結
還是跑到相同的目錄去...
以下是我的設定檔....
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin tdf168@localhost
DocumentRoot /var/www/html/tdf168
ServerName
www.tdf168.com ErrorLog logs/tdf168_error_log
CustomLog logs/tdf168_access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin tsy168@localhost
DocumentRoot /var/www/html/tsy168
ServerName
www.tsy168.com ErrorLog logs/tsy168_error_log
CustomLog logs/tsy168_access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin tdfdzi@localhost
DocumentRoot /var/www/html/tdfdzi
ServerName
www.tdfdzi.com ErrorLog logs/tdfdzi_error_log
CustomLog logs/tdfdzi_access_log common
</VirtualHost>
ScriptAlias /webmail /var/www/cgi-bin/openwebmail/openwebmail.pl