From: Asko T. <ask...@ul...> - 2006-06-15 09:13:40
|
Reini Urban wrote: >> I was not able to force https in URL parameters in config file, >> setting 'SERVER_NAME = https://phpwiki' produces bad links like >> 'http://https://phpwiki/SomePage' .. > Set SERVER_PORT = 443 in config.ini > Maybe try DISABLE_HTTP_REDIRECT = true > > I remember for earlier 1.3.x days, that we had to fix it and I didn't > check https for some years now. > It's probably just wrong url forcing. Hello Reini, thank you for your answer! Setting SERVER_PORT and DISABLE_HTTP_REDIRECT did not help, wiki links changed to http://phpwiki:443/MyPage . However, I did "grep -ir https *" in my phpwiki directory and found that there is another configurable parameter "SERVER_PROTOCOL". setting SERVER_PROTOCOL to https parameters did the trick! Thank you for your help! SERVER_NAME = phpwiki SERVER_PORT = 443 SERVER_PROTOCOL = https The default config file could look something like this, to save time the next time ;-) : --cut- ; Canonical name, httpd port and protocol (http or https) of the ; server on which this PhpWiki resides. ;/ ;SERVER_NAME = some.host.com ;SERVER_PORT = 80 ;SERVER_PROTOCOL = http --cut- -- asko |