I want to add a load balancer to an existing asp.net project using Application Request Routing. So I made myself familiar with the concepts and created a local test-setup:
- IIS locally running on Windows 10:
- Installed Application Request Routing 3.0 with Windows Platform Installer
- Created server farm with following servers:
<test-server-name>.de
(Microsoft 2012 R2 Server: contains the asp.net project)www.google.com
(just to see if load balancing and url rewriting works because I don't have two test servers available)
After typing localhost
multiple times in any browser, I can see that load balancing (weighted round robin) is working fine. It's alternating between 1. and 2. website.
The problem I'm facing is a 404 Error on both websites.
I already tried the following:
Installing and enabling Failed Request Tracing Rules (on local IIS): URL Rewriting is working properly i think.
Failed Request Log forwww.google.com
: google drive, unzip and openxml
in e.g. IE for better viewCreate Server Farm without automatic creation of URL Rewrite rules
(selecting No and create own URL Rewrite rule)
Change "Managed Pipeline Mode"-setting of Applcation Pool from Integrated to Classic
Healthcheck on other Websites
I have absolutly no clue why it's working on Git-websites and why facebook is returning a 400 error code.
Enabling/disabling proxy (IIS-Manager -> Application Request Routing Cache -> Server Proxy Settings...)
I don't know what i could do next, so I appreciate any help. Thanks.
Answer can be found here: https://forums.iis.net/t/1238739.aspx?Why+some+sites+return+HTTP+404+some+don+t+
Some websites simply don't support
localhost
as hostname, which is whylocalhost
can't be found (error 404) e.g. ongoogle.com
Detailed answer if link above is not working in future: