[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

vhosts problem



Hi, all,

I met a strange problem for vhosts config.

System information:
Fedora 9 X86_64
httpd: 2.2.9

my httpd.conf which related with vhost:

NameVirtualHost 61.153.33.a:80


<VirtualHost 61.153.33.a:80>
        DocumentRoot    /var/www/html/abcorg
        ServerName      www.abc.org
</VirtualHost>

<VirtualHost 61.153.33.a:80>
    ServerAdmin abc def com
    DocumentRoot /var/www/html/abccom
    ServerName www.abc.com
        ServerAlias abc.com *.abc.com
    ErrorLog logs/www.abc.com-error_log
    CustomLog logs/www.abc.com-access_log common
</VirtualHost>


NameVirtualHost 192.168.0.190:80
<VirtualHost 192.168.0.190:80>
        DocumentRoot    /var/www/html
        ServerName      192.168.0.190
</VirtualHost>

httpd -t -D DUMP_VHOSTS:

VirtualHost configuration:
192.168.0.190:80      is a NameVirtualHost
         default server 192.168.0.190 (/etc/httpd/conf/httpd.conf:1017)
         port 80 namevhost 192.168.0.190 (/etc/httpd/conf/httpd.conf:1017)
61.153.33.a:80        is a NameVirtualHost
         default server www.abc.org (/etc/httpd/conf/httpd.conf:1000)
         port 80 namevhost www.abc.org (/etc/httpd/conf/httpd.conf:1000)
         port 80 namevhost www.abc.com (/etc/httpd/conf/httpd.conf:1005)
wildcard NameVirtualHosts and _default_ servers:
_default_:443          127.0.0.1 (/etc/httpd/conf.d/ssl.conf:81)

Now the result is not I needed, for instance, when I access
www.abc.org, the browser will
feedback from /var/www/html/index.htm, but I need content from
/var/www/html/abcorg/index.htm.

error in error.log:
[Thu Oct 23 15:50:50 2008] [error] [client 192.168.0.150]
(13)Permission denied: access to /abcorg/index.htm denied

How could I solve this problem?

TIA

Zhou


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]