1. Goto C:\inetpub\temp\appPools\DefaultAppPool and find DefaultAppPool.config file , you will see

<!-- ERROR: There's been an error reading or processing the applicationhost.config file. -->

in it .

2. Delete this file .

3. Restart Your website from IIS Manager and check

4. Your website will start working now . If it doesnot and IIS gives again the error but a different one like httperror tag is not configured then you just have to enter a line in your website web.config file

How to configure IIS to use a specific IP in Multi IP configuration server .

There can be times when you want to run apache and IIS simultaneously on your single Server and also on port 80 , in that case the only option is to get an extra ip allotted to your machine and assign each one of them to each server .

and for configuring IIS 7 to use 1 IP you will have to explicitly change that , changing binding settings in IIS to specific IP wont work until and unless you reconfigure IIS using this blog post http://support.microsoft.com/kb/954874

How to create multiple ftp sites in IIS over single domain

Using these blog posts i was able to create multiple ftp site on single domain with different virtual hosts/sub-domains , i also got to know how to access these with clients like username should be subdomain.examplpe.com|username

The process to do this is ( i suppose that IIS 7 is currently working and serving a ASP.NET website ) install php from microsoft web platfom installer ( you can get that here - http://www.microsoft.com/web/downloads/platform.aspx ) it will automatically install the dependencies .

Now php is installed and we will have to install CGI from control panel -> Program and Features - > Turn windows features ON or OFF

and check CGI features as shown in picture

Now simply add a new website in IIS with default app pool and your site is up and running with php installed .

Recently i found out that my site was captured under a different domain name . When i was searching for some link in google there was a link which was pointing to my website's page but the domain name was entirely different from mine . I checked in my server that IIS was bound to all HTTP request coming through port 80 to my site hence someone just used my ip address under their domain name and started publishing my site under it .

Solution to this problem is simple, bind your website in IIS to specific domain and never leave domain binding empty else you could also face the same problem .