如何为本地开发和测试配置IIS?

时间:2021-12-01 04:47:32

There are a few questions about configuring Apache for local development, such as this one, but I didn't see anything about IIS. Suggestions for locking down IIS without crippling it's functionality?

关于为本地开发配置Apache有一些问题,比如这个,但我没有看到任何关于IIS的内容。关于锁定IIS而不削弱其功能的建议?

In response to a comment, I'm looking to do ASP.NET development using the IIS server that comes with Windows XP Pro SP3 (IIS 5 or 6, I believe).

在回复评论时,我希望使用Windows XP Pro SP3附带的IIS服务器进行ASP.NET开发(我相信IIS 5或6)。

3 个解决方案

#1


0  

The IIS that comes with XP is 5.0 and limits # of concurrent connections to 10 (I think- something low).

XP附带的IIS是5.0,并将并发连接的数量限制为10(我认为是低的)。

Lock Down:

For IIS development I don't think you should worry too much about security for local development as long as you trust the people on your network and you are not exposed to the internet.

对于IIS开发,我认为只要您信任网络上的人并且您没有接触到互联网,我就不会过分担心本地开发的安全性。

But if you are really paranoid, the best method would be to lock it out against everyone besides the peron on that machine. As Odividiu said (first answer) you can set your IIS to only listen to request coming from the local machine (127.0.0.1). you can do this by:

但是,如果你真的是偏执狂,那么最好的方法就是将它锁定在除了该机器上的peron之外的所有人身上。正如Odividiu所说(第一个答案),您可以将IIS设置为仅侦听来自本地计算机(127.0.0.1)的请求。你可以这样做:

1) start->run->%SystemRoot%\system32\inetsrv\iis.msc 2) Click the 'Default Web Site' 3) Action->Properties 4) Change 'IP Address' to '127.0.0.1 and click 'Apply'.

1)start-> run - >%SystemRoot%\ system32 \ inetsrv \ iis.msc 2)单击“默认网站”3)操作 - >属性4)将“IP地址”更改为“127.0.0.1并单击”应用”。

#2


1  

If you are using Visual Studio for ASP.NET development you don't need to use IIS. The default configuration for Web Projects is to use the built in Web server, webDev.WebServer.EXE

如果您使用Visual Studio进行ASP.NET开发,则不需要使用IIS。 Web项目的默认配置是使用内置Web服务器webDev.WebServer.EXE

The version of IIS in XP isn't well suited for development as it is connection throttled and allows only one site.

XP中的IIS版本不适合开发,因为它是连接限制的,只允许一个站点。

#3


0  

If you're using Visual Studio .NET 2008 (or 2005) they have a built-in Web Server that will only respond to localhost requests... No need to install IIS. How about that for lock-down? ;-)

如果您使用的是Visual Studio .NET 2008(或2005),则它们具有内置的Web服务器,该服务器仅响应localhost请求...无需安装IIS。锁定怎么样? ;-)

#1


0  

The IIS that comes with XP is 5.0 and limits # of concurrent connections to 10 (I think- something low).

XP附带的IIS是5.0,并将并发连接的数量限制为10(我认为是低的)。

Lock Down:

For IIS development I don't think you should worry too much about security for local development as long as you trust the people on your network and you are not exposed to the internet.

对于IIS开发,我认为只要您信任网络上的人并且您没有接触到互联网,我就不会过分担心本地开发的安全性。

But if you are really paranoid, the best method would be to lock it out against everyone besides the peron on that machine. As Odividiu said (first answer) you can set your IIS to only listen to request coming from the local machine (127.0.0.1). you can do this by:

但是,如果你真的是偏执狂,那么最好的方法就是将它锁定在除了该机器上的peron之外的所有人身上。正如Odividiu所说(第一个答案),您可以将IIS设置为仅侦听来自本地计算机(127.0.0.1)的请求。你可以这样做:

1) start->run->%SystemRoot%\system32\inetsrv\iis.msc 2) Click the 'Default Web Site' 3) Action->Properties 4) Change 'IP Address' to '127.0.0.1 and click 'Apply'.

1)start-> run - >%SystemRoot%\ system32 \ inetsrv \ iis.msc 2)单击“默认网站”3)操作 - >属性4)将“IP地址”更改为“127.0.0.1并单击”应用”。

#2


1  

If you are using Visual Studio for ASP.NET development you don't need to use IIS. The default configuration for Web Projects is to use the built in Web server, webDev.WebServer.EXE

如果您使用Visual Studio进行ASP.NET开发,则不需要使用IIS。 Web项目的默认配置是使用内置Web服务器webDev.WebServer.EXE

The version of IIS in XP isn't well suited for development as it is connection throttled and allows only one site.

XP中的IIS版本不适合开发,因为它是连接限制的,只允许一个站点。

#3


0  

If you're using Visual Studio .NET 2008 (or 2005) they have a built-in Web Server that will only respond to localhost requests... No need to install IIS. How about that for lock-down? ;-)

如果您使用的是Visual Studio .NET 2008(或2005),则它们具有内置的Web服务器,该服务器仅响应localhost请求...无需安装IIS。锁定怎么样? ;-)