Move the <IfModule ssl_module> block in the httpd.conf file before the virtual host directives (or include directive for the virtual hosts)