Ready to get started?Download WordPress


Amazon S3 and Cloudfront
FORCE_SSL_ADMIN Breaks Virtual Hosting Option (1 post)

  1. Raam Dev
    Posted 5 months ago #

    If you're using define('FORCE_SSL_ADMIN', true); in your wp-config.php file, which forces all WordPress admin logins to be redirected to the protected https:// URL, and you have the "Bucket is setup for virtual hosting" option enabled in the Amazon S3 and Cloudfront plugin, then whenever you upload a file via the Media Uploader the File URL gets incorrectly stored with an https:// prefix.

    This should only happen when the "Always serve files over https (SSL) " option is also enabled, but it happens even when that option is disabled.

    Since I don't have SSL setup for my Amazon S3 virtual host (cdn.raamdev.com), all file URLs end up broken becuase the plugin stores the links as https://cdn.raamdev.com/....



You must log in to post.

About this Plugin

About this Topic


No tags yet.