[pmwiki-users] Disabled EnableDirectDownload and SSL
martinkerz at gmail.com
Thu Mar 31 02:02:50 CDT 2011
Sorry for this, but somehow I was too fast yesterday. Turning off DirectDownload _still_ leads to serving the attachment in http, no matter what $UploadUrlFmt is set, and also if nothing is set a all. Any idea what the problem could be?
On 30.03.2011, at 22:57, Patrick R. Michaud wrote:
> 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
> 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.)
More information about the pmwiki-users