<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hello Francis,<br><br><div>> Put a line like<br>> <br>>         access_log logs/$log.log;<br>> <br>> inside the server{} block.<br>> <br><br>I did, iam still getting the error.<br>[emerg]: "access_log" directive is not allowed here in /etc/nginx/nginx.conf:55<br><br>The line 55 is:                 if ($log) { access_log /root/$log.log; slim; }<br><br></div>                                    </div></body>
</html>