Archive for the ‘IIS’ Category

Binding Apache and IIS both to Port 80 on Different IPs / Same NIC

Friday, September 25th, 2009

If you need to run IIS 6.0 and Apache 2.2.* side-by-side on the same Windows server machine, you most likely are trying to bind apache to one IP address and IIS to another.  If you have multiple IPs bound to the same NIC, this will only work if you do some tweaking to IIS’s metabase via httpcfg.exe

The httpcfg utility is found on the installation CD in the Suppot/Tools directory in the Support.cab file (you can use WinRAR or the like to extract it).

Once you have httpcfg on your system, you force IIS to bind only to specified IP addresses with a command like:

httpcfg set iplisten -i xxx.xxx.x.x

Here’s the KB that shows in detail you how to get it done:

http://support.microsoft.com/kb/813368/EN-US/

Hope this helps!

Recycle an Application Pool from the Command Line

Tuesday, October 2nd, 2007

Sometimes it is a whole lot nicer to recycle the specific Application Pool of concern rather than recycling IIS with “iisreset”.

There is a handy script in %windir%\system32 called iisapp.vbs and you can just run :

D:\>C:\WINDOWS\System32\iisapp.vbs /a “My Pool” /r

Connecting to server …Done.

Application pool ‘My Pool’ recycled successfully.