404状态代码在我在IIS上部署应用程序时找到

发布于 2025-01-24 11:29:20 字数 572 浏览 3 评论 0原文

在IIS Windows Server 2012上部署应用程序之后,即使URL路径是完美的并且存在文件,我将获得404状态代码。

实际上,我所做的是我们有2个不同的服务器,并且两个服务器都在同一公共IP地址上运行。

我尝试使用域名ABC.com在服务器1上使用SSL证书部署应用程序,这对我来说非常有效。

但是,当我尝试使用具有相同域名ABC.com的相同SSL证书在服务器2上部署相同的应用程序时,它给了我404个状态代码错误(未找到文件或目录)。

但是,我从服务器1中删除了该应用程序以在服务器2上进行测试。

此外,我尝试生成并使用新的SSL证书(对于Server 2的相同域名ABC.com),但是,它仍然给我相同的错误。

即使我尝试更改域名(使用xyz.com)并在服务器2上使用其SSL证书,我也会遇到相同的错误。

我尝试在Google上搜索它的各种解决方案,但也尝试使用它,但没有人为我工作。

此外,我尝试在IIS上部署一个简单的HTML页面应用程序(Hello World Message),以在没有SSL证书的服务器2上进行测试,但我仍然遇到相同的错误。

如果有人可以帮助我,那就太好了。

I am getting a 404 status code after deploying the application on IIS Windows Server 2012 even if the URL path is perfect and files exist.

Actually, what I did is we have 2 different servers and both servers are running on the same public IP address.

I tried deploying an application with an SSL certificate on server 1 with the Domain name abc.com and it works perfectly for me.

But, when I tried to deploy the same application on server 2 with the same SSL certificate with the same domain name abc.com, it gave me a 404 status code error (File or directory not found).

However, I removed the application from server 1 to test on server 2.

Also, I tried to generate and use a new SSL certificate (for the same domain name abc.com) for Server 2, but, it still gives me the same error.

I'm getting the same error even if I tried to change the domain name (with xyz.com) and used its SSL certificate on server 2.

I tried searching for various solutions for it on Google and also tried to apply it but no one works for me.

Moreover, I tried to deploy a simple HTML page application (Hello World message) on IIS for testing on Server 2 without SSL certificate but I still get the same error.

It would be nice if someone could help me with this, please.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文