无法再访问本地站点。

huangapple go评论49阅读模式
英文:

Can't access localhost sites anymore

问题

不再能访问本地主机网站。

我在运行Windows 7 64位的个人电脑上使用IIS 6.0,用于开发本地网站。

昨天之前,我有4个网站是正常工作的,但现在在尝试访问它们时都会显示404错误。我已经尝试了IE、Chrome、Brave和Firefox。

其中一个网站是我为我们的空手道俱乐部开发的,用于周末课程的登录,会员的卡片通过一个装有网络摄像头的盒子来检查,以允许他们登录。这个网站以前是可以正常工作的(它们都是可以的),但我需要将该网站设置为HTTPS,因为摄像头的JavaScript必须使用这个协议进行下载。课程的地点可能没有互联网访问,所以这些JavaScript必须从本地主机网站加载。

我尝试创建了用于本地主机的自签名证书,虽然我成功创建了,但我无法使网站在HTTPS下工作。后来我移除了这些证书,但网站无法以正常的HTTP方式访问了。

我已清除了每个浏览器的缓存,重置了IIS,并重新启动了电脑。我还逐一禁用了全球服务,重新启动了电脑,并重新启动了全球服务。

没有任何帮助。

如果有任何建议/指导,将不胜感激。

提前致谢,

Andy

英文:

No access to localhost sites anymore.

I have IIS 6.0 running on a Windows 7 64 bit PC where I work on local websites.

I have 4 sites that were working until yesterday and now give me a 404 error when I try to access. I have tried IE, Chrome, Brave and Firefox.

One of the sites I'm working on for our karate club is a login for weekend courses where the member's card is checked by a webcam in a box to allow them to log in. It was working (they all were), but I needed this site to be HTTPS as the javascripts for the camera must be downloaded using this protocol. The location of the course may not have internet access so these must be loaded from the localhost site.

I was messing about trying creating self signed certificates for localhost which I managed to do, but i could not get the site to work using https. I then removed the certificates but the sites would not then access normally (http).

I cleared the cache of each browser and have reset IIS and restarted the pc. I also went through and disabled the world wide services, restarted the PC and restarted WWS.

Nothing has helped.

Any advice/pointers would be a great help.

Thanks in Advance,

Andy

答案1

得分: 0

我不确定您所做的更改导致了网站出现问题的具体情况。如果您的网站需要使用HTTPS,您需要从受信任的证书颁发机构(CA)获取证书,而不是使用自签名证书,以确保您拥有有效的SSL证书。

根据您的描述,删除证书后,网站无法通过HTTP正常访问。您需要检查IIS中的网站配置,以确保网站的绑定设置正确。您可以尝试删除站点的HTTPS绑定,然后尝试使用HTTP访问它们。此外,您可以检查IIS日志是否包含可能导致404错误的详细错误消息。

英文:

I'm not sure what changes you made that caused problems with your site. If your website requires HTTPS, you need to obtain a certificate from a trusted certificate authority (CA) instead of using a self-signed certificate to ensure you have a valid SSL certificate.

According to your description, after you delete the certificate, the website cannot be accessed normally through http. You need to check your website configuration in IIS to make sure that your website's bindings are configured correctly. And you can remove the HTTPS binding for your sites and see if you can access them using HTTP. Also, you can check the IIS logs for any detailed error messages that might be the cause of the 404.

答案2

得分: 0

我通过进行系统还原到我安装IIS工具包之前的状态来自行解决了这个问题。现在我的网站可以再次使用HTTP正常工作。

我猜测是工具包中的某些东西引起了这个问题。

无论如何,感谢您的建议。

祝好,

Andy

英文:

I solved the problem myself by doing a system restore to the point just before i installed the IIS toolkit. My sites are now back to working using http again.

I'm guessing that it was something in the toolkit that caused the problem.

Thanks for the advice anyway.

Regards,

Andy

huangapple
  • 本文由 发表于 2023年6月2日 02:52:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/76384879.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定