How can I copy/clone a site on iis7

Take a look at the ApplicationHost.config file. It should be located under “c:\windows\system32\inetsrv\config”. This is an XML file that contains all of the IIS configuration data. You can manually modify this file to quickly create copies of your website. Just make sure to make a backup first in case you have problems.

Enabling net.tcp in IIS7

You need to add net.tcp to the enabled protocols of your site. Go to IIS Manager, right-click on your website, go to ‘Manage Web Site’ or ‘Manage Application’, then to ‘Advanced Settings…’. There you see ‘Enabled Protocols’. It probably says http. Change it to http,net.tcp. If you want to configure bindings, right-click on your website … Read more

Invalid application path

When I got this error it appeared to be due to a security setting. When I changed the “Connect As” property to an administrator then I no longer got the message. Obviously this isn’t a good solution for a production environment – one should probably grant the least privileges necessary for the user IIS is … Read more

Bad Request – Invalid Hostname IIS7

Did you check the binding is IIS? (inetmgr.exe) It may not be registered to accept all hostnames on 8080. For example, if you set it up for mysite.com:8080 and hit it at localhost:8080, IIS will get the request but not have a hostname binding to match so it rejects. Outside of that, you should check … Read more

IIS URL Rewrite {R:N} clarification

As per the documentation: When an ECMAScript pattern syntax is used, a back-reference can be created by putting parenthesis around the part of the pattern that must capture the back-reference. So taking the example that follows in the documentation: ^(www\.)(.*)$ And using the input string www.foo.com in the conditions, you will have: {C:0} – www.foo.com … Read more

IIS7 Settings File Locations

It sounds like you’re looking for applicationHost.config, which is located in C:\Windows\System32\inetsrv\config. Yes, it’s an XML file, and yes, editing the file by hand will affect the IIS config after a restart. You can think of IIS Manager as a GUI front-end for editing applicationHost.config and web.config.

IIS7 Permissions Overview – ApplicationPoolIdentity

ApplicationPoolIdentity is actually the best practice to use in IIS7+. It is a dynamically created, unprivileged account. To add file system security for a particular application pool see IIS.net’s “Application Pool Identities”. The quick version: If the application pool is named “DefaultAppPool” (just replace this text below if it is named differently) Open Windows Explorer … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)