局域网内访问错误问题
一、程序为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 8889LoadModule actions_module modules/mod_actions.soLoadModule alias_module modules/mod_alias.soLoadModule asis_module modules/mod_asis.soLoadModule auth_basic_module modules/mod_auth_basic.soLoadModule authn_default_module modules/mod_authn_default.soLoadModule authn_file_module modules/mod_authn_file.soLoadModule authz_default_module modules/mod_authz_default.soLoadModule authz_groupfile_module modules/mod_authz_groupfile.soLoadModule authz_host_module modules/mod_authz_host.soLoadModule authz_user_module modules/mod_authz_user.soLoadModule autoindex_module modules/mod_autoindex.soLoadModule cgi_module modules/mod_cgi.soLoadModule dir_module modules/mod_dir.soLoadModule env_module modules/mod_env.soLoadModule include_module modules/mod_include.soLoadModule isapi_module modules/mod_isapi.soLoadModule log_config_module modules/mod_log_config.soLoadModule mime_module modules/mod_mime.soLoadModule negotiation_module modules/mod_negotiation.soLoadModule rewrite_module modules/mod_rewrite.soLoadModule setenvif_module modules/mod_setenvif.soLoadModule php5_module "D:/wamp/bin/php/php5.4.3/php5apache2_2.dll"<IfModule !mpm_netware_module><IfModule !mpm_winnt_module>User daemonGroup daemon</IfModule></IfModule>ServerAdmin admin@localhostServerName localhostDocumentRoot "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.confInclude conf/extra/httpd-vhosts.conf<IfModule ssl_module>SSLRandomSeed startup builtinSSLRandomSeed connect builtin</IfModule>Include "D:/wamp/alias/*"
五、apache日志无错误记录,php和mysql端正常(首页获取数据正常)
回复讨论(解决方案)
端口为8889
那么所有的url都必须带有端口号,请先确认一下
端口为8889
那么所有的url都必须带有端口号,请先确认一下
带的...
晕,原来是wordpress设置里的站点名称填的是localhost。搞定了,多谢

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Long URLs, often cluttered with keywords and tracking parameters, can deter visitors. A URL shortening script offers a solution, creating concise links ideal for social media and other platforms. These scripts are valuable for individual websites a

Following its high-profile acquisition by Facebook in 2012, Instagram adopted two sets of APIs for third-party use. These are the Instagram Graph API and the Instagram Basic Display API.As a developer building an app that requires information from a

Laravel simplifies handling temporary session data using its intuitive flash methods. This is perfect for displaying brief messages, alerts, or notifications within your application. Data persists only for the subsequent request by default: $request-

This is the second and final part of the series on building a React application with a Laravel back-end. In the first part of the series, we created a RESTful API using Laravel for a basic product-listing application. In this tutorial, we will be dev

Laravel provides concise HTTP response simulation syntax, simplifying HTTP interaction testing. This approach significantly reduces code redundancy while making your test simulation more intuitive. The basic implementation provides a variety of response type shortcuts: use Illuminate\Support\Facades\Http; Http::fake([ 'google.com' => 'Hello World', 'github.com' => ['foo' => 'bar'], 'forge.laravel.com' =>

The PHP Client URL (cURL) extension is a powerful tool for developers, enabling seamless interaction with remote servers and REST APIs. By leveraging libcurl, a well-respected multi-protocol file transfer library, PHP cURL facilitates efficient execution of various network protocols, including HTTP, HTTPS, and FTP. This extension offers granular control over HTTP requests, supports multiple concurrent operations, and provides built-in security features.

Do you want to provide real-time, instant solutions to your customers' most pressing problems? Live chat lets you have real-time conversations with customers and resolve their problems instantly. It allows you to provide faster service to your custom

The 2025 PHP Landscape Survey investigates current PHP development trends. It explores framework usage, deployment methods, and challenges, aiming to provide insights for developers and businesses. The survey anticipates growth in modern PHP versio
