Logfile option and pid added.
app should be APP in the file.
SSL directives added.
Some corrections.