Setting Pebble Blog Server default URL
After I setup lighttpd for my server (to serve static files of my site and also keep the door open to try some php, ruby webapps) , using it to proxy tomcat (mod_proxy) and also using virtual servers in both tomcat and lighttpd, there were two problems with my Pebble Blog Server:(This problem doesn't happen on my previous setup where I used tomcat directly on port 80...)
1. The URL of all pebble-based links were like www.clearevo.com:8080/blog/....
2. Login to Pebble failed, or sometimes worked then I'd see http 404 not found sometimes, and on logoff.
These two problems can be fixed by editing the file: <your pebble folder>/WEB-INF/applicationContext-pebble.xml (thanks to the xml "comments" from Pebble in the file, it was easy to understand what to set...)
- Set your blog default URL: from ${url} to "your blog URL", my case was edited to <property name="url" value="http://www.clearevo.com/blog/"/>
- Empty the ${secureUrl} to an empty string, my case was edited to <property name="secureUrl" value=""/>
- Reload your pebble instance from your java webserver/tomcat (tomcat app manager: http://<url>/manager/html).
- Login to your Pebble server, goto the top menu "Configuration" > "Utilities" then click on "Reindex" to apply the new correct url to all past posts/links.
Hope this helps other Pebble users! Get the latest pebble release from Pebble Official Site.
blog comments powered by Disqus
This ClearEvo.com blog is powered by Debian GNU/Linux, running lighttpd, generated using jekyll on Ubuntu.