Apache nginx 404找不到

发布于 2025-02-10 17:06:00 字数 407 浏览 0 评论 0原文

当我通过浏览器 domain.com:8080 访问网站时。但是,当我访问 domain.com/something 时,它显示了以下消息:

Not Found
The requested URL was not found on this server.

Apache/2.4.18 (Ubuntu) Server at xxx.xxx.xxx.xxx Port 8080

我的nginx是:

server {
  listen 80;

  location /something{
      proxy_pass http://xxx.xxx.xxx.xxx:8080;
  }
}

如何解决?

When I access via browser domain.com:8080 the site opens. But, when I access domain.com/something, it shows the following message:

Not Found
The requested URL was not found on this server.

Apache/2.4.18 (Ubuntu) Server at xxx.xxx.xxx.xxx Port 8080

My nginx is:

server {
  listen 80;

  location /something{
      proxy_pass http://xxx.xxx.xxx.xxx:8080;
  }
}

How Can I solve that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

守护在此方 2025-02-17 17:06:00

看来您同时安装了Apache和Nginx Web服务器。您应该安装并启用其中一个Apache或nginx。在您的Senario中,它表明Apache Server在8080端口上执行了NOT NGINX。

It seems you installed both Apache and Nginx web servers. You should installed and enabled one of them Apache or Nginx. In your senario it showing that the Apache server is performing on 8080 port not Nginx.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文