Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Static Publisher https issue


Reply


299 Views

Avatar
igorbi

Community Member, 3 Posts

25 October 2013 at 9:11pm

Using SS3.1.1 (cms) with module StaticPublisher (https://github.com/silverstripe-labs/silverstripe-staticpublisher), encountered strange issue, and run out of ideas.

Admin section is setup to use https. It all works well. Then I've addded static publisher module to it, at first glance it worked, but I've noticed that when some Page type is updated (having pagesAffectedByChanges implemented) which should trigger recreation of cache for that specific page, baseHref is https:// and all the links on that page are https (I'm talking about cached version of page).

When running buildcache from browser pages are created valid.

Tried with setting up Director::setBaseURL('http://dev.mysite/'); in config.php but then I can't access admin section where https is used.

Also may be part of issue, when updating any PageType using admin URL Segment is https://, and I assume when page get saved it uses https instead of plain http.

Finally my question: Is there a way to use https for all admin/cms urls, and to use http for site?