为信用卡付款设置 SSL
我刚刚使用 Drupal 开发了一个信用卡处理表单,该表单与 Payway API(我的银行提供的支付处理 API)进行通信。
我已向我的主机购买了 SSL 证书,并且我知道我的主机帐户上有一个 HTTPS 服务器。如何使我的所有表单都通过 HTTPS 运行?抱歉,我是 SSL 新手,对此事完全一无所知。
我尝试将我的 drupal 站点复制到我的 httpsdocs 文件夹中,但是当我通过 https:// 访问它时它运行速度非常慢
。任何帮助或直接将不胜感激。
I have just developed a credit-card processing form using Drupal, the form communicates with the Payway API (a payment processing API provided by my bank).
I have purchased an SSL certificate with my host, and I know have an HTTPS server on my hosting account. What do I do to make all my forms run through HTTPS? Sorry I am new to SSL and am completely clueless in this matter.
I've tried copying my drupal site into my httpsdocs folder but it runs extremely slow when I access it through https://
Any help or direct would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Web 服务器上强制使用 HTTPS 的最简单方法之一是通过 Web 服务器根目录上的 .htaccess 文件。然后您可以仅将 HTTPS 应用于您需要的文件夹。
如果您使用 Drupal,您网站的根目录下可能已经有一个可以编辑的 .htaccess 文件。以下是有关需要添加到文件中的内容的简单指南:
http://www.besthost ratings.com/articles/force-ssl-htaccess.html
One of the easiest ways to force HTTPS on a web server is through a .htaccess file on the root of your web server. Then you can apply HTTPS only to the folders you need.
If you are using Drupal, there is likely already a .htaccess file on the root of your website that you can edit. Here's a simple guide on what needs to be added to the file:
http://www.besthostratings.com/articles/force-ssl-htaccess.html