our web server environment is proxied through an ssl-accelerator appliance and requires https.
however, phpwiki discovered the proxy port and reverted to http plus the proxy port in all the links created (I think this is because phpwiki likes absolute urls, not relative ones, which would have worked).
the latter does not work, of course, as it is an internal url between our ssl accelerator and real web host, not a valid url.
how could we prevent this, either by requiring that phpwiki use only relative, not absolute urls, or somehow change http://ourhost:81/link back to https://ourhost/link through a string replacement. thanks!
if this requires source code modification (i cannot find anything in the config file to do this), please point us to where the code is.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I finally figured out. SERVER_PROTOCOL was not enabled so it did no good to set it. I enabled it by changing IniConfig.php and it now works. I think this parameter is very important for ssl proxy environments and should be enabled.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
our web server environment is proxied through an ssl-accelerator appliance and requires https.
however, phpwiki discovered the proxy port and reverted to http plus the proxy port in all the links created (I think this is because phpwiki likes absolute urls, not relative ones, which would have worked).
so https://ourhost/link becomes http://ourhost:81/link
the latter does not work, of course, as it is an internal url between our ssl accelerator and real web host, not a valid url.
how could we prevent this, either by requiring that phpwiki use only relative, not absolute urls, or somehow change http://ourhost:81/link back to https://ourhost/link through a string replacement. thanks!
if this requires source code modification (i cannot find anything in the config file to do this), please point us to where the code is.
I finally figured out. SERVER_PROTOCOL was not enabled so it did no good to set it. I enabled it by changing IniConfig.php and it now works. I think this parameter is very important for ssl proxy environments and should be enabled.
I looked through old pages and saw a suggestion to set either SERVER_PROTOCOL or SERVER_PORT.
however, the resulting url http://ourhost:443/link still does not work (it returns "document has no data" always), because only https://ourhost/link works.
any suggestions are appreciated.
thanks,
is now enabled.