From: <se...@br...> - 2002-01-15 16:57:00
|
On Tue, Jan 15, 2002 at 04:37:36PM +0000, Gary Benson wrote: > > On Tue, 15 Jan 2002, Tim Bogart wrote: > > > Hello folks. My name is Tim and this is my first post to this list. My > > question is, will phpwiki work on Apache-ssl on port 443? And if so, how > > would I go about setting that up? > > It should work straight out of the box, assuming you have the Apache SSL > server running... > > Cheers, > Gary > > [ ga...@in... ][ GnuPG 85A8F78B ][ http://inauspicious.org/ ] I'm using phpwiki in a https:// environment now (Apache), but didnt worked straight out of the box. I made the following patch to work correctly (phpwiki was misconstructing the links as http://): diff -u phpwiki-1.3.2/lib/config.php /var/www/haxent/wiki/lib/config.php --- phpwiki-1.3.2/lib/config.php Mon Dec 17 00:08:58 2001 +++ /var/www/haxent/wiki/lib/config.php Wed Jan 2 10:15:52 2002 @@ -153,7 +153,7 @@ if (!defined('SERVER_NAME')) define('SERVER_NAME', $HTTP_SERVER_VARS['SERVER_NAME']); if (!defined('SERVER_PORT')) define('SERVER_PORT', $HTTP_SERVER_VARS['SERVER_PORT']); if (!defined('SERVER_PROTOCOL')) { - if (empty($HTTP_SERVER_VARS['HTTPS']) || $HTTP_SERVER_VARS['HTTPS'] == 'off') + if ((empty($HTTP_SERVER_VARS['HTTPS']) || $HTTP_SERVER_VARS['HTTPS'] == 'off') && $HTTP_SERVER_VARS['SERVER_PORT'] != '443') define('SERVER_PROTOCOL', 'http'); else define('SERVER_PROTOCOL', 'https'); HTTP_SERVER_VARS['HTTPS'] is not getting sane values here, probably, i dont know why. Sergio Bruder -- http://pontobr.org, http://sergio.bruder.net, http://bruder.homeip.net:81 ----------------------------------------------------------------------------- pub 1024D/0C7D9F49 2000-05-26 Sergio Devojno Bruder <se...@br...> Key fingerprint = 983F DBDF FB53 FE55 87DF 71CA 6B01 5E44 0C7D 9F49 sub 1024g/138DF93D 2000-05-26 |