我有一个带有登录表单的 Codeigniter 应用程序。我在 Apache 和 Nginx 上都运行了它。在 Apache 上,一切正常,表单操作也正常。但是在 Nginx 上,表单操作使用https
而不是http
(我目前不想要)。
我使用这个生成表单:
<?php echo form_open(site_url('/user/do_login')); ?>
它产生了这个:
<form action="https://example.com/index.php/user/do_login" method="post" accept-charset="utf-8">
如何强制它生成http
而不是https
在 Nginx 上生成?