English 中文(简体)
inetpub versus any other folder
原标题:
  • 时间:2009-11-13 15:38:14
  •  标签:
  • iis

I ve run websites out of inetpub, as well as from folders just residing on the C: drive. I wonder, are there any definitive advantages to running websites out of inetputwwwroot?

最佳回答

Probably belongs on ServerFault, but there are lots of good reasons for not using the default folder, at least in production environments.

Far and away the biggest advantage is that you can avoid standard cannonical attacks if the sites reside on a different drive than the OS--someone can t easily get to cmd.exe if they manage to penetrate IIS.

Disk-speed wise, having the web stuff not contend for disk access against the OS can help in some scenarios.

There can be lots of other advantages depending on how your box and network is configured and what sorts of toys you have.

问题回答

The only advantage I can see is that not sticking to the conventional inetpub folder might be a good idea if your site gets attacked by hackers.

There is a small chance that there is a security benefit since the process running the web site will only have access to the inetpub directory and not the rest of your C disk. This is however dependent on your set up.

There is however, a benefit from moving it of the system drive, since this will reduce contention, and should therefore improve performance.





相关问题
Session Management with Windows Authentication

In an ASP.NET web app, using Integrated Windows Authentication, is the session tied to the windows identity? In other words, if I login (using IWA) to the app, and the app stores some "stuff" in my ...

Using Elmah with Cassini

Does anyone know if I can use Elmah with Visual Studio build-in web server(aka Cassini)? I get it working easily on IIS, but using same configuration, it doesn t work with Cassini. When I requested ...

Setting hostname in IIS, include www?

I want to set the hostname for a website I m adding in IIS 7, however do I include the www in the hostname or not? because I want both www.mysite.com and mysite.com both to point to mysite on the ...

inetpub versus any other folder

I ve run websites out of inetpub, as well as from folders just residing on the C: drive. I wonder, are there any definitive advantages to running websites out of inetputwwwroot?

IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

热门标签