Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

how to prevent url modification by phpwiki

Help
John Shen
2004-09-23
2012-10-11
  • John Shen
    John Shen
    2004-09-23

    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.

     
    • John Shen
      John Shen
      2004-09-23

      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.

       
    • John Shen
      John Shen
      2004-09-23

      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,

       
    • Reini Urban
      Reini Urban
      2004-09-28

      is now enabled.