- 论坛徽章:
- 0
|
我服务器的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>; |
|