Status 302 Found, when I try to access my web application instead of status 200 - iis

Please help me in understanding why we get found 302 status. I googled and get to know that this is something to do with redirect. I have two web applications IIS servers and they configured for round robin DNS.
If I check it from fiddler sometimes I get status 302 instead of status 200, This does not happen every time I visit my website. Because of this HP site scope triggering alerts.
I am new to this error, Please Help me.

Related

Intermittent 502 when using cloudflare on azure

I am hosting my website on azure and using cloudflare for dns and proxy.
Recently I started experiencing a problem where if I refresh a page a number of times, eventually I get the cloudflare 502 page. Refreshing the page again and it loads fine.
If I refresh the page without using cloudflare, i.e. I go straight to {mydomain}.azurewebsites.net I don't get the issue.
So obviously the problem is server/cloudflare side config. Any ideas on what could be causing this?
I think it is related to this issue: https://community.cloudflare.com/t/random-502-errors-for-last-3-days-caused-by-illegal-request-header-injected-by-cf-reverse-proxy/202061
The 502 Bad Gateway error is an HTTP status code that means that one server on the internet received an invalid response from another server... so as it stands you don't have enough information to figure out what is going on here.
You will need to find a way to get the web server logs from your server on Azure and possibly also the logs from Cloudflare.

http status code 200 in browser, but 403 in http status checker, why?

http status checker: https://httpstatus.io/
or
http://tools.seobook.com/server-header-checker/?url=capefearadventures.com&useragent=8&protocol=11
url: capefearadventures.com
Both checkers return 403, but if I pull up the site in any browser it works fine returning 200.
Any ideas why that would be?
I was able to access the firewall logs and the requests from http status checkers were deemed as DDOS22 - DDOS attemps, therefore blocked. I added their IP to whitelist and the request went through just fine returning 200! Thanks for the pointer!

What to return to browser if DNS lookup failed?

Disclaimer: not sure if this is SO material. If not, please move it to the appropriate place.
I'm trying to build a web proxy, and I'm unsure what to return to the browser, if the DNS lookup failed (ie. if the domain does not exist). Is there a HTTP status code for this? I tried looking in the Network tab in Chrome, but there's no response for a failed DNS lookup.
There wouldn't be an HTTP code for it, since by definition an HTTP request couldn't be done in the first place is the server's IP couldn't be resolved. Probably the easiest-to-use-instead would be 404 - "not found" or 404.1 - "site not found" if you have IIS 7.0+.
Referencing #Dark Falcon's comment and mysterious withdrawal from the question
"Most I have seen return 502 Bad Gateway or 504 Gateway Timeout"

404 Error Hijacked by Time Warner

I created a customized 404 page in IIS. If a user types in the name of one of our employees in the url: www.ourdomain.com/firstname the 404 page grabs the firstname and forwards you to the bio page for that person. If it doesn't find the string as a name it just serves up our custom 404 error page.
This is working beautifully with one exception. When you are using Time Warner as your ISP instead of loading the custom 404 page I get an error message that says, "The connection was reset...." it has a try again button at the bottom.
Any ideas on how I can get Time Warner to serve up my custom 404 error message?
I came up with this on the Mozilla Forum, it appears to be ISP's and their greed. Re-routing 404 traffic to pages of their choice likely to improve revenue. It appears the best method is to complain to their customer service however I'm unsure how it will help if its only been a few to complain (so far).
UPDATE
It appears someone has found a way to disable this.

How can I configure IIS to use customerrors with option set to recreate for all extensions/MIMEs?

I'm currently using customErrors, and I would like to use the recreate option, always.
This currently works for URLs such as
mysite.com/asdf
My custom error page loads as this URL:
mysite.com/asdf
However, this is not working for URLs such as
mysite.com/asdf.aspx
My custom error page loads as
mysite.com/mycustomerrorpage.aspx?errorpath=/asdf.aspx
This is handled by IIS as a 302 redirect to the error page above with a status of 200 when it loads.
What I'm trying to accomplish: I want the user to receive an http status of 404 (or respective status code), and I want the page to recreate always (regardless of extension or lack of extension). I do not want a 302 redirect from IIS, and I do not want the custom error page to return as a 200.
I'm new to IIS - This seems like it would be a basic thing, but I'm having more troubles than I would've guessed :)
Thank you in advance for any assistance!

Resources