简体   繁体   English

负载平衡器中安装的AWS SSL证书会阻止访问php页面?

[英]AWS SSL Certificate installed in load balancer prevents access to php pages?

I am using an AWS EC2 Ubuntu server.Recently i installed an ssl certificate provided by aws certificate manager using aws load balancers. 我正在使用AWS EC2 Ubuntu服务器。最近我使用AWS负载均衡器安装了AWS证书管理器提供的SSL证书。 Once the ssl was successfully installed i am unable to access specific php pages eg: domainname/admin.php or vendor.php. 成功安装ssl后,我将无法访问特定的php页面,例如:domainname / admin.php或vendor.php。 I get re-routed to index page (index.php) Kindly suggest any solution or pointers for this issue? 我被重新路由到索引页面(index.php)请提出任何解决方案或针对此问题的指针?

The webpage is accessible and the ssl is working fine.The web browser seems to prevent php page access. 该网页可访问,并且ssl正常运行。Web浏览器似乎阻止了php页面访问。

first you need to disable https and rewriting rules on your web server for https(if enabled). 首先,您需要禁用https并在Web服务器上为https(如果启用)重写规则。 then you can access you admin panel and perform the following steps :- 那么您可以访问管理面板并执行以下步骤:-

  1. In the administration panel, go to Settings > Security settings. 在管理面板中,转到设置>安全设置。

  2. In the Enable secure connection for the storefront setting choose Secure full site. 在“为店面启用安全连接”设置中,选择“保护整个站点”。

  3. Click the Save button. 单击保存按钮。

then you can enable your rewriting rules with https again. 然后您可以再次使用https启用重写规则。 i hope it helps? 我希望对您有帮助吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM