[pmwiki-users] Disabled EnableDirectDownload and SSL

Patrick R. Michaud pmichaud at pobox.com
Wed Mar 30 15:57:11 CDT 2011


On Wed, Mar 30, 2011 at 09:40:45PM +0200, Martin Kerz wrote:
> Hi there,
> 
> whenever I disable DirectDownload pmwiki serves me attachments via http://, and not https://, although $ScriptUrl is set to https:// .
> 
> $UploadDir = $UrlScheme.'://my-wiki.net/uploads';

$UploadDir is the name of a local directory where uploads will
be stored, not the url used to access the directory.
You want to be setting $UploadUrl if you want it to be using
https:.

By default $UploadUrl is derived from $PubDirUrl, so if $PubDirUrl
has https:, then $UploadUrl should also.

See http://www.pmwiki.org/wiki/PmWiki/UploadVariables .

(By default $PubDirUrl is derived from $ScriptUrl... but if a local
customization is setting $PubDirUrl with a http: (no 's') value then 
that's what $UploadUrl will use by default also.)

Pm



More information about the pmwiki-users mailing list