PHPで作成されているログイン画面がhttpsだとみれません。
session_cache_limiter('private'); require 'core/bootstrap.php'; require 'view/Smarty/Smarty.class.php'; $connInfo = array( 'host' => 'localhost', 'dbname' => '○○', 'dbuser' => '○○', 'password' => '○○' ); Model::setConnectionInfo($connInfo ); $app = new Application(false); $app->setSystemRoot('/var/www/vhosts/○○/httpdocs/kanri/'); $app->setTemplatePath('/var/www/vhosts/○○/httpdocs/kanri/template'); $app->dispatch(); ?>
自動リダイレクトをディレクトリ単位で除外して、httpの状態だと普通に使用可能です。
これをhttps化しても使えるようにするにはどうすればよいのでしょうか。
コンソールで確認したエラーはこんな感じです。
Mixed Content: The page at 'https://○○/kanri/index.php/auth/login' was loaded over a secure connection, but contains a form that targets an insecure endpoint 'http://○○/kanri/index.php/auth/login'. This endpoint should be made available over a secure connection.
Mixed Content: The page at 'https://○○/kanri/index.php/auth/login' was loaded over HTTPS, but requested an insecure script 'http://○○'. This request has been blocked; the content must be served over HTTPS.
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。