当前位置: 技术问答>linux和unix
从windows访问linux的web服务出现怪问题
来源: 互联网 发布时间:2015-09-16
本文导语: 系统: RedHat Linux 9(192.168.7.1)+ Bind+Apache+win98 问题: 在linux环境下,可以以 lynx www.example.com/~user的方式访问web页, 而在win98下只能以 192.168.7.1/~user的方式访问linux上的服务。请问原因。 Bind配置文件如下: ## n...
系统: RedHat Linux 9(192.168.7.1)+ Bind+Apache+win98
问题: 在linux环境下,可以以 lynx www.example.com/~user的方式访问web页,
而在win98下只能以 192.168.7.1/~user的方式访问linux上的服务。请问原因。
Bind配置文件如下:
## named.conf - configuration for bind
#
# Generated automatically by redhat-config-bind, alchemist et al.
# Any changes not supported by redhat-config-bind should be put
# in /etc/named.custom
#
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
include "/etc/named.custom";
include "/etc/rndc.key";
zone "7.168.192.in-addr.arpa" {
type master;
file "7.168.192.in-addr.arpa.zone";
};
zone "mytrek.com" {
type master;
file "mytrek.com.zone";
};
####mytrek.com.zone####
$TTL 86400
@ IN SOA @ root.localhost (
5 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
IN NS turtle.mytrek.com.
rabbit IN A 192.168.7.3
turtle IN A 192.168.7.1
www IN CNAME turtle.mytrek.com.
######7.168.192.in-addr.arpa.zone####
$TTL 86400
@ IN SOA @ root.localhost (
8 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)
@ IN NS turtle.mytrek.com.
1 IN PTR turtle.mytrek.com.
3 IN PTR rabbit.mytrek.com.
## named.custom - custom configuration for bind
#
# Any changes not currently supported by redhat-config-bind should be put
# in this file.
#
zone "." {
type hint;
file "named.ca";
};
options {
directory "/var/named/";
};
问题: 在linux环境下,可以以 lynx www.example.com/~user的方式访问web页,
而在win98下只能以 192.168.7.1/~user的方式访问linux上的服务。请问原因。
Bind配置文件如下:
## named.conf - configuration for bind
#
# Generated automatically by redhat-config-bind, alchemist et al.
# Any changes not supported by redhat-config-bind should be put
# in /etc/named.custom
#
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
include "/etc/named.custom";
include "/etc/rndc.key";
zone "7.168.192.in-addr.arpa" {
type master;
file "7.168.192.in-addr.arpa.zone";
};
zone "mytrek.com" {
type master;
file "mytrek.com.zone";
};
####mytrek.com.zone####
$TTL 86400
@ IN SOA @ root.localhost (
5 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
IN NS turtle.mytrek.com.
rabbit IN A 192.168.7.3
turtle IN A 192.168.7.1
www IN CNAME turtle.mytrek.com.
######7.168.192.in-addr.arpa.zone####
$TTL 86400
@ IN SOA @ root.localhost (
8 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)
@ IN NS turtle.mytrek.com.
1 IN PTR turtle.mytrek.com.
3 IN PTR rabbit.mytrek.com.
## named.custom - custom configuration for bind
#
# Any changes not currently supported by redhat-config-bind should be put
# in this file.
#
zone "." {
type hint;
file "named.ca";
};
options {
directory "/var/named/";
};
|
你又没有在bind.conf里面配置www.example.com这个域名……
|
你的WIN98里dns设置是否正确.