Questions tagged [http-status-code-404]

404 is the HTTP status code for "Not Found"

A web server will return a status code of 404 when the resource that is being requested does not exist or cannot be found.

385 questions
19
votes
3 answers

Serve 404 from HAProxy when no acls match

I'm currently re-configuring HAProxy using 1.5dev-17. What I'd like to do is return a 404 error when there is no backend to use for a particular request. Our current configuration uses the default_backend to route to our django app servers, but when…
Josh Smeaton
  • 1,330
  • 2
  • 19
  • 31
17
votes
2 answers

IIS 404 error where file exists

I have a fresh VPS installation from my provider (Windows 2008 R2, IIS 7.5). The default web site works fine: http://5.9.251.167/ I created a new website, and binding for http://new.ianquigley.com On that server and everywhere else that Domain…
Ian Quigley
  • 643
  • 1
  • 6
  • 12
12
votes
1 answer

Location directive not working

For my NGINX server I have a virtual server set up just to dish out static content. At the moment I'm trying to set it up so that images have an expiry date. However, when I create a location directive for this, everything just results in a 404. My…
Jesse Brands
  • 223
  • 1
  • 2
  • 8
11
votes
1 answer

Why isn't IIS serving my static CSS / JS files?

I added an ASP.NET MVC3 site to ISS (which was working fine in the debugger). When viewing the site in a browser, everything appeared to be working fine except that all of the CSS and JS files were returning a 404. Here is the site in IIS…
Nathan Osman
  • 2,705
  • 7
  • 31
  • 46
11
votes
2 answers

Apache config: Return 404 for single

Is it possible to let Apache automatically return a 404 page for a single URL using the Location tag? # ??? Solutions without mod_rewrite or any other modules preferred.
AndiDog
  • 321
  • 2
  • 5
  • 19
10
votes
3 answers

After enabling HTTPS on my Apache2 server - I get 404 errors on every request

Okay, so I've had no experience with SSL/HTTPS ever before, I've only ever dealt with standard HTTP. Recently I've started work on a site which will need SSL. So of course, I've gone out and researched how to and got started. I've got to the stage…
10
votes
4 answers

How do I add no-cache headers to all 404 pages served by apache and nginx?

I have recently run into an issue after switching to Cloudflare, and the solution is to basically stop Cloudflare from caching 404 responses. In our load-balanced multi-server setup, occasional 404s happen, but they're quickly fixed by rsync (via…
10
votes
6 answers

IIS Can't Serve Certain File Extension

I'm serving .JSON files, but even though the file exist, IIS keeps throwing 404 error when any of the file is accessed. I tried renaming one of the file to .JS, and it works. Any pointer what setting can cause this issue?
Adrian Godong
  • 577
  • 4
  • 9
  • 20
8
votes
1 answer

What does ALPN, server did not agree to a protocol mean?

I see this quite regularly when using various calls in curl. I'm not sure if its the root cause to some of my returns resulting in error 400 but as a newbie just curious more than anything.
John Toe
  • 81
  • 1
  • 1
  • 2
8
votes
1 answer

IIS 7 WCF Webservices giving 404 error over HTTPS

I have some WCF webservices running under IIS 7.5 which are responding correctly to http requests but respond with 404 (Not Found) errors when methods are called using SSL. The binds for the site are as below: When calling…
Morvael
  • 271
  • 1
  • 2
  • 8
8
votes
2 answers

real solution for `No input file specified.` (nginx, fpm)

Most answers to this question are, set fastcgi_param SCRIPT_FILENAME and it will work (italic formatting is broken?!). I have set this variable (correct) but it still shows the error instead of a 404 page, because the root of the problem is…
Daniel W.
  • 1,439
  • 4
  • 23
  • 46
8
votes
2 answers

nginx serving alternate location on 404

I'm trying to set up an nginx config as follows: When receiving a request like /tile/SteveCountryVic/1/2/3.png: Attempt to pass it through to http://localhost:5005/1/2/3.png If that 404s, pass it to another server as…
Steve Bennett
  • 5,539
  • 12
  • 45
  • 57
8
votes
4 answers

Apache: Redirect 404 and ErrorDocument 404 difference

I would like to do a 404 redirect with Apache, and I find several solutions: The .htaccess method. But I don't want to add a .htaccess if not necessary. virtual host method: ServerAlias *.example.com Redirect 404…
7
votes
3 answers

IIS 7 returns HTTP 200 on custom 404 error page

I have successfully set up custom static error pages for IIS7. IIS7 is currently working as a gateway to a Java tomcat application. The issue is that when the 404 error page is served it is served with a HTTP 200 status code header. I would like a…
Ben Doerr
  • 211
  • 2
  • 6
7
votes
2 answers

List top 404 URLs in Apache access_log

I'm looking for a command to list the 10 or 20 top 404 error URLs out of my apache access_log. Can anyone help me with this? thanks
tykho
  • 71
  • 1
  • 2
1
2 3
25 26