Apache nginx 404找不到
当我通过浏览器 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来您同时安装了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.