#{extends 'layouts/main.html' /} #{set title:'Home' /}

Insecure page (HTTP)

%{ appname = play.Play.configuration.getProperty("application.name") }% This ${appname} Play! Web App is intended for testing &{'testmodule'} module

This page is supposed not to have sensitive data and for that reason is not secure.

Try to secure index and the page shall switch to secure scheme.
secure index

#{ifnot session.get("username").equals("admin")}

Or try to login and the page shall switch to secure scheme.
login

#{/ifnot} #{if session.get("username").equals("admin")}

Try InfoPlay, which uses secure scheme. InfoPlay

#{/if}