虚拟主机问题

由 蒙痕 在 05-16-2003 17:48 发表:

虚拟主机问题

rh9.0 中,我用基于名字的做apache虚拟主机,可是到测试时,显示的网页都是虚拟主机下的主页。请问各位大侠这个问题该如何解决!我的httpd.conf文件如下:#

Use name-based virtual hosting.

NameVirtualHost 10.8.46.181

Where do we put the lock and pif files?

LockFile "/var/lock/httpd.lock"

CoreDumpDirectory "/etc/httpd"

Defaults for virtual hosts

Logs

Virtual hosts

Virtual host syw.w2.com

 1<virtualhost 10.8.46.181="">   
 2  
 3DocumentRoot /var/www/htm   
 4  
 5  
 6  
 7  
 8  
 9ServerName www.w2.com   
10  
11<directory "="" htm="" var="" www="">   
12  
13AllowOverride none   
14  
15  
16  
17  
18  
19  
20  
21</directory>
22</virtualhost>

Each directory to which Apache has access can be configured with respect

to which services and features are allowed and/or disabled in that

directory (and its subdirectories).

Note that from this point forward you must specifically allow

particular features to be enabled - so if something's not working as

you might expect, make sure that you have specifically enabled it

below.

 1<directory "="">   
 2  
 3Options FollowSymLinks   
 4  
 5  
 6  
 7AllowOverride None   
 8  
 9  
10  
11  
12  
13  
14  
15</directory>
 1<directory "="" html"="" var="" www="">   
 2  
 3Options Indexes Includes FollowSymLinks   
 4  
 5  
 6  
 7AllowOverride None   
 8  
 9Allow from from all   
10  
11  
12  
13  
14  
15Order allow,deny   
16  
17</directory>
1<directory "="" icons"="" var="" www="">   
2  
3Options Indexes MultiViews   
4  
5  
6  
7AllowOverride None   
8  
9Allow from fr</directory>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus