域名转向问题.急急急~~~ (已经解决)

域名转向问题.急急急~~~ (已经解决)

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

ScriptAlias /mail /var/www/cgi-bin/openwebmail/openwebmail.pl
ScriptAlias /web /var/www/html/web/index.htm


NameVirtualHost 61.*.*.*

<VirtualHost 61.*.*.*>
ServerName 域名
</VirtualHost>


<VirtualHost 61.*.*.*>
RewriteEngine   on
ServerName  mail.域名
RewriteRule   ^/$   http://域名/mail   [L,R]
</VirtualHost>

<VirtualHost 61.*.*.*>
#RewriteEngine   off
RewriteEngine   on
ServerName 域名
RewriteRule   ^/$   http://域名/web   [L,R]
</VirtualHost>



这样的设置.为什么访问mail.域名就能打开邮件的登陆页面.
而访问域名却不能打开呢?
218.19.167.229 - - [26/Jun/2007:10:32:04 -0400] "GET /web/index.htm HTTP/1.1" 500 746 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

已解决
如何解决的你都不说说?
NameVirtualHost ServerIP

<VirtualHost ServerIP>
RewriteEngine   on
ServerName www.*1.com
RewriteRule   ^/$   http://www.*1.com/index.htm     [L,R]
</VirtualHost>

<VirtualHost ServerIP>
RewriteEngine   on
ServerName mail.*1.com
RewriteRule   ^/$   http://www.*1/mail     [L,R]
</VirtualHost>



<VirtualHost ServerIP>
RewriteEngine   on
ServerName www.*2.com
DocumentRoot /var/www/html/web/
RewriteRule   ^/$   http://www.*2.com/index.htm   [L,R]
</VirtualHost>