Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 用外网地址不可访问bbs

[复制链接]
3065088 发表于 2010-11-2 11:32:42 | 显示全部楼层 |阅读模式
操作系统是RedHat Linux,装的apache。部署有uc、bbs、blog系统,下面以bbs为例。

我在PC上的hosts文件将bbs.XXX.com解析到服务器的内网IP,可以正常访问;但解析到服务器的公网IP,就不能访问。
在PC上可以ping通服务器的内网和公网的IP。

apache里的虚拟目录配置如下:
NameVirtualHost *:80
   <VirtualHost *:80>
   ServerName bbs.XXX.com
   DocumentRoot "/data/wwwroot/bbs"   
   DirectoryIndex index.html index.php index.shtml
   <Directory ""/data/wwwroot/bbs">
      Allow from All
      AllowOverride All
   </Directory>
   </VirtualHost>
智维 发表于 2010-11-2 11:35:10 | 显示全部楼层
<VirtualHost *:80>
    ServerAdmin admin@ccav.com
    DocumentRoot /var/www/ccav
    ServerName www.ccav.com
    ErrorLog logs/dummy-host.example.com-error_log
    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

linux apache  配置
回复

使用道具 举报

 楼主| 3065088 发表于 2010-11-2 14:38:10 | 显示全部楼层
有人知道吗?
回复

使用道具 举报

 楼主| 3065088 发表于 2010-11-2 16:29:30 | 显示全部楼层
问题找到了。是网络设备把IP配冲突了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-22 13:26 , Processed in 0.091262 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表