该死的技术,真不该做这行。
配个虚拟主机,但只有第一个生效。感觉也没错呀,一定是其实那个变量值没设对。该死的技术,快TM气吐血了。
<VirtualHost www.a.com:80>
ServerAdmin webmaster@jicheke.com
DocumentRoot "/var/www/sns/"
ServerName www.a.com
AddDefaultCharset UTF-8
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" common1
ErrorLog "/var/httpd/log/jicheke-error_log"
CustomLog "|/usr/sbin/rotatelogs /var/httpd/log/jicheke-access_%Y%m%d.log 86400" common1
<Directory "/var/www/sns/">
AllowOverride All
Order Deny,Allow
Deny from all
Allow from all
DirectoryIndex index.php index.html
</Directory>
RewriteEngine On
</VirtualHost>
<VirtualHost www.b.www:80>
ServerAdmin jp214@126.com
DocumentRoot "/var/www/jianping/"
ServerName www.b.www
AddDefaultCharset UTF-8
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" common1
ErrorLog "/var/httpd/log/pingzi-error_log"
CustomLog "|/usr/sbin/rotatelogs /var/httpd/log/pingzi-access_%Y%m%d.log 86400" common1
<Directory "/var/www/jianping/">
AllowOverride All
Order Deny,Allow
Deny from all
Allow from all
DirectoryIndex index.php index.html
</Directory>
RewriteEngine On
</VirtualHost>
------解决方案--------------------ping 不行的网址 看有解析到那台服务器上了没
没配置过 但
<VirtualHost www.b.www:80>
ServerName www.b.www 是随便个例子 还是?