Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old December 22nd, 2004, 01:08 PM
pastis pastis is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 5 pastis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 8 sec
Reputation Power: 0
IIS 403;4 custom error

I'm running IIS 5.0 and am having problems getting a customized error to work properly. I have a site that has a certificate on a secure directory. The default page for the site simply performs a redirect of the user to the logon page for the site, e.g., response.redirect ("https:\\www.mysite.com\secure\logonpage.asp"). I've configured the 403;4 custom error with a non-secure page that takes the user to an error messaging page which is also non-secure. If I turn off SSL within my browser and try to access https:\\www.mysite.com I receive "The page cannot be displayed" with the "Cannot find server or DNS Error" error. If I try to access the logon page directly with http:\\www.mysite.com\secure\logonpage.asp the site properly directs me to the error page. What am I missing?

Reply With Quote
  #2  
Old December 22nd, 2004, 07:54 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
Google turned up this, perhaps it will help

http://www.issociate.de/board/post/152620/SSL_Redirect.html
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #3  
Old December 23rd, 2004, 11:42 AM
pastis pastis is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 5 pastis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 8 sec
Reputation Power: 0
Doug: The thread you directed me to handles customizing an error to translate http to https. My problem is if I have SSL turned off on my browser accessing the web site doesn't seem to hit the customized error page. It goes directly to the DNS error.





Quote:
Originally Posted by Doug G
Google turned up this, perhaps it will help

http://www.issociate.de/board/post/152620/SSL_Redirect.html

Reply With Quote
  #4  
Old December 24th, 2004, 12:58 AM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
I don't know, sorry.

Reply With Quote
  #5  
Old December 25th, 2004, 04:44 PM
A2k's Avatar
A2k A2k is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 166 A2k User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 44 m 10 sec
Reputation Power: 4
Just a thought... what is generating the error? IIS or Internet Explorer (assuming thats what you're using)?

Also (I'll check this when I start doing some dev work again in mid jan) Can't you set custom errors for a specific directory in IIS, perhaps you have defined global ones, but the directory you're attempting to browse isn't configured correctly?

Reply With Quote
  #6  
Old December 26th, 2004, 03:25 PM
pastis pastis is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 5 pastis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 8 sec
Reputation Power: 0
I configured the 403;4 at the Default Web Site level so it covers it all the way to the directory with security. As for what is generating the, I'm not clear as to where the DNS error comes from.





Quote:
Originally Posted by A2k
Just a thought... what is generating the error? IIS or Internet Explorer (assuming thats what you're using)?

Also (I'll check this when I start doing some dev work again in mid jan) Can't you set custom errors for a specific directory in IIS, perhaps you have defined global ones, but the directory you're attempting to browse isn't configured correctly?

Reply With Quote
  #7  
Old December 26th, 2004, 03:55 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
Maybe you can look in your IIS logfile and see what the requested url seen by IIS was (that didn't work). I haven't done much with SSL, sorry I'm not much help on this one.

Reply With Quote
  #8  
Old January 20th, 2005, 01:46 PM
pastis pastis is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 5 pastis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 8 sec
Reputation Power: 0
Opened an incident ticket with Microsoft and they inform me that this custom error isn't used for this purpose. The 4.03;4 is to inform users that they are trying to hit a page using http when the protocol required is https. Microsoft also stated that what I want to do is controlled within the browser and allowing developers to capture this information would open up security holes in IE.

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > IIS 403;4 custom error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT