使用laragon 搭建网站在手机上无法正常打开。
使用laragon 搭建 mysql +Nginx+php 一个查询网站,通过微信公众号标签访问,之前一直没有问题,最近发现在微信中打不开。
经过测试在服务器上和电脑的浏览器都可以打开,但是通过手机访问网页就无法打开。提示访问超时!
这个问题如何解决?
使用laragon 搭建 mysql +Nginx+php 一个查询网站,通过微信公众号标签访问,最近发现在微信中打不开?
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
GPT_Pro 2023-02-26 18:16关注该回答内容部分引用GPT,GPT_Pro更好的解决问题
首先要确认是否有足够的网络带宽,网络信号可以正常连接,排除客户端的问题。接下来要做的是检查Laragon服务状态,重新启动Nginx、Mysql、PHP服务,重启服务器。
如果重启服务器依然无法解决问题,可能是Nginx的配置出了问题,可以检查一下nginx.conf文件,看看是否有任何语法错误导致无法正常运行。
server { listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { root html; index index.html index.htm; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; #这里要确保fastcgi_pass的ip是正确的,和php-fpm的端口是一致的。 fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; #这里也要注意 fastcgi_param 的SCRIPT_FILENAME 路径是正确的。 include fastcgi_params; } # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # location ~ /\.ht { deny all; } }同时也可以检查PHP-FPM服务器的日志,如果发现异常就可以找到原因。此外,还可以检查一下浏览器的cookie、session等数据,看看是否会出现不一致的问题。如果没有发现任何异常,就可能是微信端传输过程中出了问题,需要单独处理微信端的问题。
如果回答有帮助,望采纳。解决 无用评论 打赏 举报