[Pmwiki-users] https

Patrick R. Michaud pmichaud
Thu Oct 9 16:43:36 CDT 2003

Sorry for my previous incorrect post, the line for local.php would
need to be:

 $ScriptUrl = 'https://'.$HTTP_SERVER_VARS['HTTP_HOST'] .

But the overall point is that you can tell PmWiki what URL you'd like it to
use for accessing pages (e.g., 'http:' vs. 'https:', relative vs. absolute,
etc.) by setting the $ScriptUrl variable in local.php.


On Thu, Oct 09, 2003 at 02:02:40PM -0600, Patrick R. Michaud wrote:
> On Thu, Oct 09, 2003 at 08:58:10PM +0200, D. Deuter wrote:
> > 
> > htaccess-passwords are transferred plaintext through Internet.
> > So I tried to access my Wiki-Page via https - but it seems as
> > if the http-header was hardcoded into pmWiki! Why doesn't
> > pmWiki just refer to other pages relatively (which would also
> > make it easier to access non-Wiki-pages in the site)??
> ...because relative pages don't work if the page name is encoded into
> the URL path.  For example, given a url of
>     http://www.pmichaud.com/wiki/Main/HomePage
> The relative url to the PmWiki.PmWiki page would have to be 
> "../PmWiki/PmWiki", which has the potential for all sorts of
> problems.  
> However, the http: is not really "hardcoded" into PmWiki--you can always 
> change it in local.php.  If you want to use https: instead of http:, just add
>    $ScriptUrl = 'https://'.$HTTP_SERVER_VARS['HTTP_HOST'];
> to local.php and all of the urls will use the https: address instead.
> Pm
> _______________________________________________
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com

More information about the pmwiki-users mailing list