After further inspection, it looks like it's working fine on your blog. I'm guessing this is because you're missing a <base> element, whereas I have:
<base href="https://raible.kgbinternet.com" /> On Tue, Apr 8, 2014 at 8:47 AM, Matt Raible <[email protected]> wrote: > This seems to get me part of the way there - thanks Glen. > > To enable SSL and have it work for embedded iframes, it looks like I'll > have to change <iframe src="http://..."> to <iframe src="//...">. Another > thing I noticed is comments XML doesn't load. Is this because I don't have > a valid cert on my site? My certificate is for *.raibledesigns.com - > raible.kgbinternet.com is just a test site. If I use the "https" version > of the URL below, it works fine. > > http://raible.kgbinternet.com/rd/entry/developing_an_ios_native_app > > XMLHttpRequest cannot load > https://raible.kgbinternet.com/CommentAuthenticatorServlet. No > 'Access-Control-Allow-Origin' header is present on the requested resource. > Origin 'http://raible.kgbinternet.com' is therefore not allowed access. > > > On Mon, Apr 7, 2014 at 6:10 PM, Glen Mazza <[email protected]> wrote: > >> Hi Matt, I think what I'm doing on my OpenShift blog (http[s]:// >> web-gmazza.rhcloud.com/) could work for you: >> >> 1.) On the blog server administration page, "Absolute URL to site (if >> required)" field, I have "https://web-gmazza.rhcloud.com" >> 2.) I uncommented the <security-constraint/> section at the bottom of the >> default web.xml: http://svn.apache.org/viewvc/roller/trunk/app/src/main/ >> webapp/WEB-INF/web.xml?view=markup >> >> This gives me both https:// and http:// for the blog reader, but only >> the former when I'm creating blogs, logging in, etc. >> >> HTH, >> Glen >> >> >> On 4/7/2014 3:56 PM, Matt Raible wrote: >> >>> I'm thinking about making my site accessible over http as well as https. >>> One thing I noticed is the absolute URL requires a prefix. I tried changing >>> it from "http://" to just "//" (so it uses the same scheme as the page) >>> and it fails: >>> >>> java.net.MalformedURLException: no protocol: //localhost:8080 >>> at java.net.URL.<init>(URL.java:585) >>> at java.net.URL.<init>(URL.java:482) >>> at java.net.URL.<init>(URL.java:431) >>> at org.apache.roller.weblogger.ui.rendering.velocity. >>> deprecated.ContextLoader.loadPathValues(ContextLoader.java:420) >>> at org.apache.roller.weblogger.ui.rendering.velocity. >>> deprecated.ContextLoader.setupContext(ContextLoader.java:192) >>> at org.apache.roller.weblogger.ui.rendering.model. >>> ModelLoader.loadOldModels(ModelLoader.java:57) >>> at org.apache.roller.weblogger.ui.rendering.servlets. >>> PageServlet.doGet(PageServlet.java:436) >>> >>> Is it possible to enhance the "$absBaseURL" macro to allow no prefix? >>> >>> I'm using Roller 5.0.3 on Tomcat 7. >>> >>> Thanks, >>> >>> Matt >>> >> >> >
