by Nitin Pant.
Fixed. I just had to create a php.ini file in the moodle directory with this content:
cgi.fix_pathinfo = 0
It was a know bug when using PHP as CGI.
It's Really working the quiz will be working well..