From: asko <ask...@ul...> - 2006-06-14 08:46:00
|
Hi, is anybody running phpwiki over https? I'm having slight problems.. Firstly, the wiki is for private use and is protected by .htaccess .. phpwiki-1.3.12p2_2, apache-2.2.2 and php4-4.4.2_2 virtualhost looks something like this: <VirtualHost *:443> ServerName phpwiki ServerAdmin webmaster@server DocumentRoot /usr/local/www/phpwiki ErrorLog /var/log/apache/phpwiki-https-error.log CustomLog /var/log/apache/phpwiki-https-access.log common </VirtualHost> Usually web applications are able to detect the correct URL for internal links, but now after authentication all the wiki urls point to http://phpwiki. Basically I get http wikilinks, but I need https ;-) 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' .. Btw, https worked in phpwiki 1.2 with similar configuration if it counts, it broke after upgrade. Please help, what am I missing.. It probably has to do something with URL detection? thank you asko |
From: Reini U. <ru...@x-...> - 2006-06-14 19:23:23
|
asko schrieb: > Hi, > > is anybody running phpwiki over https? I'm having slight problems.. > > Firstly, the wiki is for private use and is protected by .htaccess .. > > > phpwiki-1.3.12p2_2, > apache-2.2.2 and php4-4.4.2_2 > > virtualhost looks something like this: > > <VirtualHost *:443> > ServerName phpwiki > ServerAdmin webmaster@server > DocumentRoot /usr/local/www/phpwiki > ErrorLog /var/log/apache/phpwiki-https-error.log > CustomLog /var/log/apache/phpwiki-https-access.log common > </VirtualHost> > > Usually web applications are able to detect the correct URL for internal > links, but now after authentication all the wiki urls point to > http://phpwiki. Basically I get http wikilinks, but I need https ;-) > > 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 lost my mod_ssl.so somewhere, so I cannot check immediately, but I will try to set it up again for the tests. > Btw, https worked in phpwiki 1.2 with similar configuration if it > counts, it broke after upgrade. > > Please help, what am I missing.. It probably has to do something with > URL detection? 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. -- Reini Urban http://phpwiki.org/ http://murbreak.at/ http://helsinki.at/ http://spacemovie.mur.at/ |
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 |
From: Reini U. <ru...@x-...> - 2006-06-15 10:30:06
|
Asko Tamm schrieb: > 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! Thank you also. You were faster than me. That also saved me from finding a mod_ssl.so for windows in the short term. > 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- Thanks! commited to CVS. -- Reini Urban http://phpwiki.org/ http://murbreak.at/ http://helsinki.at/ http://spacemovie.mur.at/ |