局域网内访问错误问题

Anew_G 2013-04-07 11:01:12
一、程序为wordpress,WAMP环境

二、防火墙已关,能ping通

三、主机端口为8889,本地访问一切正常。局域网内其他机器访问主页正常,其他均不可访问。
[错误 102 (net::ERR_CONNECTION_REFUSED):服务器拒绝了连接],访问机没开代理啊

四、httpd.conf如下


ServerRoot "D:/wamp/bin/apache/apache2.2.22"

PHPIniDir "D:\wamp\bin\php\php5.4.3"

Listen 8889

LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule php5_module "D:/wamp/bin/php/php5.4.3/php5apache2_2.dll"

<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>

User daemon
Group daemon

</IfModule>
</IfModule>

ServerAdmin admin@localhost

ServerName localhost

DocumentRoot "D:/wamp/www/wordpress/"

<Directory />
Options FollowSymLinks
AllowOverride All
Order Deny,Allow
Allow from all
</Directory>

<Directory "D:/wamp/www/">

Options Indexes FollowSymLinks

AllowOverride All

Order Deny,Allow
Deny from all
Allow from all

</Directory>

<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>

<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>

ErrorLog "D:/wamp/logs/apache_error.log"

LogLevel warn

<IfModule log_config_module>

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

<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>

CustomLog "D:/wamp/logs/access.log" common

</IfModule>

<IfModule alias_module>

ScriptAlias /cgi-bin/ "cgi-bin/"

</IfModule>

<IfModule cgid_module>

</IfModule>

<Directory "cgi-bin">
AllowOverride All
Options FollowSymLinks
Order deny,allow
Allow from all
</Directory>

DefaultType text/plain

<IfModule mime_module>

TypesConfig conf/mime.types

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3

</IfModule>

Include conf/extra/httpd-autoindex.conf

Include conf/extra/httpd-vhosts.conf

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

Include "D:/wamp/alias/*"


五、apache日志无错误记录,php和mysql端正常(首页获取数据正常)

...全文
2006 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Anew_G 2013-04-07
  • 打赏
  • 举报
回复
引用 1 楼 xuzuning 的回复:
端口为8889 那么所有的url都必须带有端口号,请先确认一下
带的... 晕,原来是wordpress设置里的站点名称填的是localhost。搞定了,多谢
xuzuning 2013-04-07
  • 打赏
  • 举报
回复
端口为8889 那么所有的url都必须带有端口号,请先确认一下

21,893

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧