SSLのPortが443ではない場合、すべてのWikiリンクが不正になってしまった。
再現手順:
1、ApacheのSSLを有効します
2、https-ssl.confにあるPortを修正し、443から8080へ変更します
Listen 8080 ... <VirtualHost _default_:8080>
3、Pukiwiへアクセスして確認できます。
対応方法:
lib\func.php (r1.73) Line.600 を修正します
//$script = (SERVER_PORT == 443 ? 'https://' : 'http://'); // scheme $script = ($_SERVER['HTTPS'] ? 'https://' : 'http://'); // scheme
初めてのphp対応ですが、ご確認ください
$script = (isset($_SERVER['HTTPS']) ? 'https://' : 'http://'); // schemeの方がいいんじゃないかな。 -- ぃぉぃぉ 2008-03-06 (木) 18:57:44
$script = (SERVER_PORT == 443 ? 'https://' : 'http://'); // scheme $script .= SERVER_NAME; // host $script .= (SERVER_PORT == 80 ? '' : ':' . SERVER_PORT); // port↓
$script = (isset($_SERVER['HTTPS']) ? 'https://' : 'http://'); // scheme $script .= SERVER_NAME; // host $script .= (SERVER_PORT == (isset($_SERVER['HTTPS']) ?443 :80) ? '' : ':' . SERVER_PORT); // portこんな感じかな -- mashiki 2008-07-20 (日) 03:00:40
$script = (isset($_SERVER['HTTPS']) ? 'https://' : 'http://'); // scheme $script .= SERVER_NAME; // host $script .= (SERVER_PORT == (isset($_SERVER['HTTPS']) ?443 :80) ? '' : ':' . SERVER_PORT); // port $script .= $_SERVER['PHP_SELF']; // PHP Script上記の4行目を追加した4行を追加してやることでうまくいきました。-- wataru 2009-06-27 (土) 21:34:56