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