IIS Server Security >> IIS 6 Redirection with Exchange 2003

by Gonthax » Thu, 09 Oct 2003 17:03:42 GMT

Hi there,

I have an SSL-enabled mail server at https://webmail.mycompany.com/exchange.
Works great. When I follow the directions at
http://support.microsoft.com/default.aspx?scid=kb;en-us;279681 for
automatically redirecting users who type http: instead of https:, if I try
to test it out, I get a big fat error message on my test machine about
something relating to a problem with my Application Pool.

My IIS 6 is an out of the box setup, with Exchange 2003 set up as a
front-end server.

Any ideas?

Thanks.




IIS Server Security >> IIS 6 Redirection with Exchange 2003

by Ken Schaefer » Fri, 10 Oct 2003 11:26:56 GMT


Perhaps if you posted the "big fat error message" that's "about something
relating to a problem with my Application pool"...we might be able to help
you out.

Otherwise, in response to your generic symptoms, all I can give is a generic
response: I suggest that there is something wrong...

Cheers
Ken




: Hi there,
:
: I have an SSL-enabled mail server at
https://webmail.mycompany.com/exchange.
: Works great. When I follow the directions at
: http://support.microsoft.com/default.aspx?scid=kb ;en-us;279681 for
: automatically redirecting users who type http: instead of https:, if I try
: to test it out, I get a big fat error message on my test machine about
: something relating to a problem with my Application Pool.
:
: My IIS 6 is an out of the box setup, with Exchange 2003 set up as a
: front-end server.
:
: Any ideas?
:
: Thanks.
:
:





IIS Server Security >> IIS 6 Redirection with Exchange 2003

by David Wang [Msft] » Fri, 10 Oct 2003 11:39:36 GMT

This is a generic problem that we are aware of with IIS6 and Application
Pool isolation. There's no real solution to it (i.e. you can't always just
take some previous KB, follow it verbatim, and have it work on IIS6), but
some work-arounds can be applied based on principle.

The problem comes about because IIS6 does not allow a request to execute
between Application Pool boundaries. /Exchange is probably in a different
application pool than /owaasp, and when you tried to configure a Custom
Error URL which crosses this boundary, you're going to get the 403 error you
see. There is no solution to this behavior.

The work-around would be to move the custom error URL into the same
application pool as the original target. i.e. make /owaasp use the same
Application Pool as /Exchange.

The implications of this workaround is this:
If you have >1 Application Pool, you cannot have a single global custom
error URL that works for everyone. You will need to individually configure
separate custom error URL for each Application Pool. Note that I say URL
and not File -- you can have a bunch of vdirs pointing to the exact some
physical ASP page (each vdir is a different URL in a different Application
Pool). This is just a maintenance chore of the custom error URL that
depends linearly on the number of Application Pools that you're running.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//


Hi there,

I have an SSL-enabled mail server at https://webmail.mycompany.com/exchange.
Works great. When I follow the directions at
http://support.microsoft.com/default.aspx?scid=kb ;en-us;279681 for
automatically redirecting users who type http: instead of https:, if I try
to test it out, I get a big fat error message on my test machine about
something relating to a problem with my Application Pool.

My IIS 6 is an out of the box setup, with Exchange 2003 set up as a
front-end server.

Any ideas?

Thanks.





IIS 6 Redirection with Exchange 2003

by Jeff » Fri, 10 Oct 2003 11:43:16 GMT

Fair enough.

The message is "The specified request cannot be executed from current
Application Pool." If I run the .ASP file directly, (that is, I type:
http://webmail.mycompany.com/owaasp/owahttps.asp ) then it redirects me
properly.

It's when /owaasp/owahttps.asp is run during the 403.4 event that yields
the Application Pool error. How I repeat the error is to type in the
following address: http://webmail.mycompany.com/exchange instead of using
https, with the desired behavior is to redirect me to
https://webmail.mycompany.com/exchange instead I get this error.




generic


try




IIS 6 Redirection with Exchange 2003

by Ken Schaefer » Fri, 10 Oct 2003 13:31:24 GMT

Ah - define the custom error page as a page in the same application pool as
where the error is occuring.

I think what is happening is that /exchange is in one application pool, and
/owaasp is another application pool. And when a 403.4 error occurs in the
/exchange app, you're trying to call a page that's located in another app. I
don't think that works.

What i think you need to do is set the custom error page as a URL in the
same app pool that the error is occuring in.

Cheers
Ken



: Fair enough.
:
: The message is "The specified request cannot be executed from current
: Application Pool." If I run the .ASP file directly, (that is, I type:
: http://webmail.mycompany.com/owaasp/owahttps.asp ) then it redirects me
: properly.
:
: It's when /owaasp/owahttps.asp is run during the 403.4 event that yields
: the Application Pool error. How I repeat the error is to type in the
: following address: http://webmail.mycompany.com/exchange instead of using
: https, with the desired behavior is to redirect me to
: https://webmail.mycompany.com/exchange instead I get this error.
:
:


: > Perhaps if you posted the "big fat error message" that's "about
something
: > relating to a problem with my Application pool"...we might be able to
help
: > you out.
: >
: > Otherwise, in response to your generic symptoms, all I can give is a
: generic
: > response: I suggest that there is something wrong...
: >
: > Cheers
: > Ken
: >
: >


: > : Hi there,
: > :
: > : I have an SSL-enabled mail server at
: > https://webmail.mycompany.com/exchange.
: > : Works great. When I follow the directions at
: > : http://support.microsoft.com/default.aspx?scid=kb ;en-us;279681 for
: > : automatically redirecting users who type http: instead of https:, if I
: try
: > : to test it out, I get a big fat error message on my test machine about
: > : something relating to a problem with my Application Pool.
: > :
: > : My IIS 6 is an out of the box setup, with Exchange 2003 set up as a
: > : front-end server.
: > :
: > : Any ideas?
: > :
: > : Thanks.
: > :
: > :
: >
: >
:
:




IIS 6 Redirection with Exchange 2003

by Jeff » Sat, 11 Oct 2003 04:20:20 GMT

Thanks Ken, that fixed it up :)



as
and
I


yields
using




I
about




Similar Threads

1. iis 6.0 http to https redirection for owa 2003 - Manage MS Exchange Server

2. Exchange 2010 OWA and IIS Filter Redirection Problem

We have an IIS Filter that our product uses to protect the Exchange OWA client.
We keep our own session information.  When the filter receives a request and 
we detect that our session has expired, the filter responds with a 302 
redirection.
Prior to Exchange 2010 the redirection would work as expected.  However, 
starting with Exchange 2010 it seems as if the client is ignoring the 302 
rediction response.  Instead of being redirected, the OWA client displays a 
message that says an unexpected error has occured.
Is there a reason why this technique no longer works?
What would we need to do to get it working again?

3. Exchange 2000 to Exchange 2003 Upgrade for FE Configuration

4. A redirection to a URL in IIS 6

5. Redirection to a URL question w/ 2003 IIS Manager

6. iis 6.0 http to https redirection for owa 2003

7. Granting DefaultAppPool Access to Exchange 2003 on Windows Server 2003 - IIS Server Security

8. Exchange 2003 / IIS 6.0 WMI Install problem

Some, about half of our fresh installed Windows 
2003/Exchange 2003 servers are missing WMI performance 
classes for monitoring.  The only class we know of that 
does not appear to be installed is: 
Win32_PerfRawData_SMTPSVC_SMTPServer  
Contains many sub functions and events that can be 
monitored.

Is there a way to copy the WMI class from one machine 
that has them to another?  We have tried reinstalling 
SMTP and Exchange 2003, but may have failed because the 
WMI service kept starting up on its own during the 
reinstall process, are there any other services or 
applications we can uninstall and reinstall to get these 
classes?

Thanks,
Mike