免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1520 | 回复: 0
打印 上一主题 下一主题

[Web] redhat8.0不能配置虚拟主机问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-04-11 17:15 |只看该作者 |倒序浏览


我服务器的DNS服务器已配置过,服务器主名是dataserver.com,虚拟服务器名www.dataserver.com,
ip地址是192.1.1.1。通过客户端ping dataserver.com已经验证通过,ping www.dataserver.com
通不过,但在服务器上用命令nslookup www.dataserver.com检查好象通过
(出现www.dataserver.com  canocinal name = www.dataserver.com)。另外我又配置了apache服
务器,在客户端用IE浏览dataserver.com的网页可以,但浏览www.dataserver.com的不同网页却始终
找不到网页。请各位apache高手指点一、二。

                             谢谢!
                                      e-mail:jevy@263.net
                                      

我的httpd.conf文件配置如下:

User nobody
Group nobody

ServerAdmin root@localhost

ServerName dataserver.com

UseCanonicalName on

DocumentRoot "/var/www/html"

<LocationMatch "^/$">;
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>;

<IfModule mod_userdir.c>;
    UserDir "disable"
</IfModule>;

DirectoryIndex

AccessFileName .htaccess

<Files ~ "^\.ht">;
    Order allow,deny
    Deny from all
</Files>;

TypesConfig "/etc/mime.types"

DefaultType text/plain

<IfModule mod_mime_magic.c>;
    MIMEMagicFile conf/magic
</IfModule>;

HostNameLookups Off

ErrorLog "/var/log/httpd/error_log"

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>;s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>;s %b" common
LogFormat "%{Referer}i ->; %U" referer
LogFormat "%{User-agent}i" agent


CustomLog logs/access_log combined

ServerSignature on

Alias /icons/ "/var/www/icons/"

Alias /manual "/var/www/manual"

<IfModule mod_dav_fs.c>;
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>;

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

<IfModule mod_cgid.c>;
</IfModule>;


Alias /error/ "/var/www/error/"

NameVirtualHost 192.1.1.1

LockFile "/var/lock/httpd.lock"
CoreDumpDirectory "/etc/httpd"

<VirtualHost 192.1.1.1>;
        DocumentRoot /home/jevy/html
        ServerName www.dataserver.com
        ServerAlias /home/jevy/html
        ServerAlias /home/jevy/icon
</VirtualHost>;

<Directory "/">;
        Options FollowSymLinks
        AllowOverride None
</Directory>;

<Directory "/var/www/html">;
        Options Indexes Includes FollowSymLinks
        AllowOverride None
        Allow from from all
        Order allow,deny
</Directory>;

<Directory "/var/www/icons">;
        Options Indexes MultiViews
        AllowOverride None
        Allow from from all
        Order allow,deny
</Directory>;

<Directory "/var/www/cgi-bin">;
        Options ExecCGI
        AllowOverride None
        Allow from from all
        Order allow,deny
</Directory>;
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP