[pmwiki-users] SSL setup
    Joachim Durchholz 
    jo at durchholz.org
       
    Fri Apr 21 12:01:40 CDT 2006
    
    
  
H. Fox schrieb:
>>
>> The only change that needs to be made specifically for the sake of the
>> SSL environment is to add/change two lines in local/config.php:
>>                 $ScriptUrl = 'https://www.address.com/wiki/pmwiki.php';
>>                 $PubDirUrl = 'https://www.address.com/wiki/pub';
>>
>> ??
You could try
   $ScriptUrl = '/wiki/pmwiki.php';
   $PubDirUrl = '/wiki/pub';
so that the browsers auto-complete the protocol and host name part of 
the URL (I think they should).
That way, you are not sold to the https vs. http decision.
> Try putting this in your .htaccess file:
> 
>   SSLRequireSSL
> 
> http://www.apache-ssl.org/docs.html#SSLRequireSSL
Not needed if URLs like the above are used.
SSLRequireSSL will generate just a nasty error message in case of people 
accessing the page without SSL. A redirect (preferably permanent) would 
be more appropriate.
Probably easiest using mod_rewrite, since it can redirect visitors 
directly to the SSL version of the page.
Regards,
Jo
    
    
More information about the pmwiki-users
mailing list