Updated location resource so if ssl=true resource will be applied only to ssl version