- 论坛徽章:
- 0
|
不应该啊,基于主机名的话,不应该跳转的
chenyx 发表于 2011-03-11 10:07 ![]()
我把虚拟主机配置文件贴出来。
virtual.conf:
NameVirtualHost 10.166.241.164:80
<VirtualHost 10.166.241.164:80>
ServerName www.skytravelcorp.com
DocumentRoot /www/sites/travel
ErrorDocument 404 /var/www/error/noindex.html
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog "|/usr/local/sbin/cronolog /var/log/httpd/skytravelcorp/www_%Y%m%d_log" combined
<Directory "/www/sites/travel">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.php
</Directory>
</VirtualHost>
virtual2.conf:
NameVirtualHost 10.166.241.164:8080
<VirtualHost 10.166.241.164:8080>
ServerName www.skyroam.com
DocumentRoot /www/sites/skyroam
ErrorDocument 404 /var/www/error/noindex.html
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog "|/usr/local/sbin/cronolog /var/log/httpd/www_%Y%m%d_log" combined
<Directory "/www/sites/skyroam">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex navigation.php
</Directory>
</VirtualHost> |
|