Setup Yii2 on IIS server

Hi everyone, I’m doing a setup of my site on IIS server from Apache. I’m having issue with routing. Do anyone have any idea regarding this issue. The error seems to be regarding server as I think:-

"Error (#-1)

An internal server error occurred.

The above error occurred while the Web server was processing your request.

Please contact us if you think this is a server error. Thank you."

Please help.

Thanks in advance

There were topics w/ people running Yii on IIS. Setup should be the same for 1.1.x and 2.0.x. Try searching forums.

Thanks for reply Samdark. I was expecting the reply from your side. :)

Yes I have gone through the forums and I have found that we have to use web.config.

I’m having an issue with my $content from main layout. Url is hitting the main.php from layout expect the site/index.

header and footer is working fine. I think this might be an issue of web.config