只需将链接从 https 更改为 http 即可无需 SSL 访问文件?
我为 subdomain.mydomain.com 启用了 SSL,因此我可以通过 https://subdomain.mydomain.com。现在请告诉我我是否正确..如果我在 subdomain.mydomain.com 中有名为 index.php 的文件,我可以通过以下方式安全地访问它:
https://subdomain.mydomain.com/someFolder/index.php
但我也可以通过
http://subdomain.mydomain.com/someFolder/index.php
这次通信不会加密。那么,现在只有当我安全地访问 subdomain.mydomain.com 中的文件时,才取决于链接吗?
我还会有另一个相关问题(可能还有更多问题),但会将其作为单独的主题发布以保持干净:)
I have SSL enabled for subdomain.mydomain.com so I can access files via https://subdomain.mydomain.com. Now please tell me if I'm right.. if I have file somwhere in subdomain.mydomain.com called index.php I can securely access it via:
https://subdomain.mydomain.com/someFolder/index.php
but I can also access it via
http://subdomain.mydomain.com/someFolder/index.php
This time communication won't be encrypted though. So now it comes down to links only if I access files in subdomain.mydomain.com securely or not?
I will have another related question (and many more probably), but will post it as separate topic to keep things clean :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以强制对非 https URL 使用 SSL 站点。这样人们就无法在不加密通信的情况下访问页面
在http虚拟主机VirtualHost 192.168.0.4:80中,仅输入以下行
You can force the use of the SSL site for non-https URLs. This way people cannot access the pages without encrypting the communication
In the http virtual host, VirtualHost 192.168.0.4:80, put just the line
这通常是它的工作原理,但这取决于您特定的网络服务器的设置。例如,您可以将 Web 服务器配置为完全禁止非 HTTPS 流量,甚至可以在 HTTP 和 HTTPS 之间提供完全不同的内容。
That's usually how it works, but it depends on your specific webserver's setup. For example, you can configure a web server to disallow non-HTTPS traffic completely or you can even serve totally different content between HTTP and HTTPS.
是的,在 URL 中使用
https:
或http:
可以控制访问是否安全。Yes, using
https:
orhttp:
in your URLs controls whether the access is secure or not.