Fixed deprecated variables in *.erb template
Add rewriteDomain parameter. #2

Signed-off-by: Konrad Scherer <Konrad.Scherer@windriver.com>