Skip to main content

Questions tagged [http-status-code-404]

404 is the HTTP status code for "Not Found"

Filter by
Sorted by
Tagged with
20 votes
3 answers
30k views

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 ...
Josh Smeaton's user avatar
  • 1,360
17 votes
2 answers
64k views

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 ...
Ian Quigley's user avatar
13 votes
1 answer
54k views

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 ...
Jesse Brands's user avatar
12 votes
2 answers
29k views

Apache config: Return 404 for single <Location>

Is it possible to let Apache automatically return a 404 page for a single URL using the Location tag? <Location "/some/url"> # ??? </Location> Solutions without mod_rewrite or any ...
AndiDog's user avatar
  • 321
12 votes
1 answer
47k views

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 ...
Nathan Osman's user avatar
  • 2,745
11 votes
5 answers
19k views

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 ...
Artem Russakovskii's user avatar
10 votes
3 answers
10k views

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

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 ...
Michael Longhurst's user avatar
10 votes
6 answers
26k views

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 ...
Adrian Godong's user avatar
9 votes
4 answers
57k views

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: <VirtualHost *:80> ...
DocWiki's user avatar
  • 683
9 votes
2 answers
21k views

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 ...
Steve Bennett's user avatar
9 votes
1 answer
22k views

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 ...
Morvael's user avatar
  • 311
8 votes
2 answers
30k views

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 ...
Daniel W.'s user avatar
  • 1,799
8 votes
2 answers
7k views

List top 404 URLs in Apache access_log [closed]

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's user avatar
  • 81
8 votes
3 answers
10k views

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 ...
Ben Doerr's user avatar
  • 231
8 votes
2 answers
17k views

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's user avatar
7 votes
4 answers
22k views

How to throw a 404 error from htaccess?

Everything I find seems to be about created a custom 404 page. That is not what I am trying to do. If I want to block access to a page I can do this in htaccess: RewriteRule pattern - [F] ...
JD Isaacks's user avatar
7 votes
3 answers
39k views

404 Error on a file that exists?

A script makes a GET request to my URL like so: http://mydomain.com/cgi-bin/uu_ini_status_audios.pl?tmp_sid=b742be1d131c4d32237a9f1fcdca659e&rnd_id=0.2363453360320319 However, I get a 404 ...
Abs's user avatar
  • 1,649
7 votes
1 answer
15k views

url rewrite, nginx throw 404 errors, nothing in error logs

below rewrite works fine: rewrite ^/city/restaurants$ /city/listings/restaurants permanent; but this doesnt work rewrite ^/city/restaurants$ /city/listings/restaurants last; rewrite ^/city/...
Olaf Stavenger's user avatar
6 votes
5 answers
17k views

404 when page exists - IIS 5, ASP.NET 4.0

I have a webserver running Server 2003 Datacenter and IIS 5 which is hosting a variety of ASP.NET 2.0 websites. I'm attempting to add an ASP.NET 4.0 website which I wrote via the VS2010 Beta, and I ...
tsilb's user avatar
  • 608
6 votes
2 answers
11k views

IIS not allowing me to server files with .rdp extension

I am trying to host a .rdp file that will be publically available on the internet (without password, of course). IIS is not letting me use this file - I'm getting a 404 error saying it cannot find ...
user66827's user avatar
  • 225
6 votes
4 answers
14k views

Receiving a 404 for a file that exists in nginx web server

I recently switched the web server on my CentOS 7 machine from Apache to nginx. I use software to take screenshots on my computers and to upload them to the server for public viewing. Originally, it ...
J.W.F.'s user avatar
  • 348
6 votes
1 answer
14k views

IIS website http ok but https cannot find resource (status code 404)

Afternoon, I publish an API on domainA.com and have done for several months. *http:/domainA.com/service.svc takes me to the resource (c:\inetput\wwwroot\api) *https://domainA.com/service.svc ...
scott_lotus's user avatar
  • 1,079
5 votes
4 answers
1k views

How to prevent bots from trying to guess a link on my site

My logwatch report which I installed recently shows me this: --------------------- httpd Begin ------------------------ 0.78 MB transferred in 5864 responses (1xx 0, 2xx 4900, 3xx 0, 4xx 964, 5xx 0) ...
Nikola's user avatar
  • 877
5 votes
3 answers
5k views

Wildcard DNS, VirtualHosts on apache2, 404 for unused subdomains

On an Apache2 server linked to by a DNS that includes a wildcard entry, e.g. *.example.com, subdomains that are not defined as ServerNames in any VirtualHosts point to the first defined VirtualHost, ...
Niel Thiart's user avatar
5 votes
2 answers
10k views

primary.sqlite.bz2 not found on private repo

I've been setting up a private repo for the company I'm working. At the beginning it was working properly, but today, when I'll try to install a new rpm that I've build I had this ugly error : http://...
Abel's user avatar
  • 322
5 votes
2 answers
5k views

Serve a custom 404 page generated by PHP

Here is how my php-fpm config is: location @site { fastcgi_pass unix:/var/run/php5-fpm.sock; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root/index.php; ...
Matthieu Napoli's user avatar
5 votes
1 answer
2k views

Make Lighttpd return 404 for unused subdomains?

I have some domains set up on my Ubuntu server that uses Lighttpd. I have wildcard domains and I want the unused subdomains to return 404 instead of 200 and displaying the regular domain. This problem ...
Ray Walz's user avatar
  • 145
5 votes
2 answers
25k views

IIS 8.5 - getting error when returning static 404 file

IIS8.5 > Sites > mysite > Error Pages > 404 Select "Insert content from static file into the error response". Uncheck "Try to return the error file in the client language". Enter path to "notfound....
Marcus's user avatar
  • 627
5 votes
1 answer
17k views

HTTPS version of page throws 404, regular HTTP appears fine?

I'm having a strange issue with a website in IIS on Windows Server 2003. It has a valid wild card certificate on it, however when I use HTTPS on the page I get a 404 not found. Without HTTPS it shows ...
MetaGuru's user avatar
  • 916
4 votes
2 answers
17k views

Nginx status page not found

I'm trying to enable the Nginx status page on my Centos 7 server. I installed Nginx from the EPEL repository, Nginx is built with staus page support: [root@server ~]# nginx -V 2>&1 | grep -o ...
Rens Verhage's user avatar
4 votes
1 answer
59k views

How to fix "404 not found" error on nginx configuration

I just installed nginx on debian, and do basic configuration(add server part) in nginx.conf file user www-data; worker_processes 1; error_log /var/log/nginx/error.log; pid /var/run/nginx....
salafek's user avatar
  • 43
4 votes
3 answers
7k views

DNS issue on Windows SBS2008 - Some external websites unavailable

Since few weeks, some websites are suddently unavailable. We are getting a 404 - The web page requested cannot be displayed. Basically, the only way to fix this is when I restart the DNS client/...
user8740's user avatar
  • 109
4 votes
1 answer
11k views

Nginx redirect all 403 to 404?

I'm trying to get 403 responses to be exactly identical to 404 ones. Not sure if there's a proper way to do it, but setting error_page 403 404 is my current method. Which works, but it rewrites the ...
House3272's user avatar
  • 189
4 votes
2 answers
7k views

mod_jk status page not working

I am doing clustering in Tomcat 7 with Apache server. It is working fine too. However I have the following issues: 1) I am trying to monitor the mod_jk status page; but it is giving 404 error. 2) in ...
Kumar's user avatar
  • 211
4 votes
1 answer
331 views

Nameserver Issue?

I have a domain registered with active-domain.com and yesterday I changed my nameservers to my host, but then I decided to switch my host at the last minute and changed them again. Now, 24 hours or so ...
Rob's user avatar
  • 43
4 votes
3 answers
5k views

Drupal admin section - Page not found

After upgrading to Drupal 6.12 I can no longer access the admin section on my site - I get a page not found error. Things I've been able to test/check: I have clean URLs enabled but trying to bypass ...
Robert MacLean's user avatar
4 votes
1 answer
1k views

Using nginx and Drupal, how do I serve a 404 error for static files and directories that exist?

I deploy a Drupal web site using git (well, OK, the developers deploy it; I try to keep them out of trouble), and for that reason the site has a directory .git and a file .gitignore in the document ...
Michael Hampton's user avatar
4 votes
1 answer
423 views

What is notified-SplashPage?

I'm seeing a lot of notified-SplashPage and verify-SplashPage entries showing up in our apache error log [Wed Jan 20 15:00:22 2010] [error] [client xxxxx] File does not exist: /home/site/htdocs/...
Rik Heywood's user avatar
4 votes
1 answer
3k views

Tomcat mod_jk cluster skip 404 http status

I am trying Tomcat Clustering with mod_jk for months and so far not so bad but facing a problem during deployment. I am using FarmDeployer to copy and deploy the WAR to other nodes in the cluster but ...
user53864's user avatar
  • 1,753
4 votes
8 answers
3k views

Why won't IIS execute my custom 404 page? It tries to serve up the raw source code instead

I'm trying to configure Custom Errors in IIS6. I select the 404 error, set the dropdown to "URL," then enter this as the URL "/404.aspx" When go to: http://mysite.com/no-page-here It finds 404....
Deane's user avatar
  • 247
4 votes
4 answers
6k views

How can I prevent Apache from logging 404 errors?

So, whenever a user tries to fetch a file on my Apache server that doesn't exist I get a 404 line in the Access log: [29/Sep/2010:12:14:45 +0200] "GET /asdf HTTP/1.1" 404 And I also get this in the ...
Sandman's user avatar
  • 349
3 votes
2 answers
18k views

nginx display a not found image

I have a lot of hotlinked images. Which is fine but some do not exist anymore due to change in URL. Is it possible to display something like imageshack "image not found error" picture only when images ...
Abhishek Dujari's user avatar
3 votes
3 answers
186 views

Over a million 404's?

Using Analog 6 for web stats, and I'm surprised to see over a million 404's over 54 days. Am I looking at this correctly? Is this an unusual ratio of 404's to "200 OK" page views? I don't see any 404'...
markratledge's user avatar
3 votes
2 answers
19k views

Codeigniter in subdirectory on Nginx 404

I'm trying to setup Codeigniter in a subdirectory of my domain. Currently I only get an 404 from Codeigniter on the index page. As soon as a want to go to example.com/api/welcome/index I get a 404 ...
Arodes's user avatar
  • 101
3 votes
2 answers
9k views

NGINX returning 404 error on a valid url

We have a site that runs PHP-FPM and NGINX. The application sends invitations to site members that are keyed with 40 character random strings (alphanumerics only -- example below). Today for the ...
Harrison's user avatar
3 votes
1 answer
6k views

Why is Nginx serving `index.html` instead of a 404?

I have a site where requesting a particular JSON file and finding it missing triggers a request for a fallback JSON file. However, rather than getting a 404 for the first file, I was getting the ...
Nathan Long's user avatar
  • 1,545
3 votes
1 answer
4k views

Microsoft exchange autodiscover 404 errors

What is the best way to handle an Exchange autodiscover request on a linux web server? Currently it looks for example.com/autodiscover/autodiscover.xml. Since this page doesn't exist it throws a 404. ...
MAZUMA's user avatar
  • 163
3 votes
2 answers
181 views

Numerous 404's for "alive.txt", anybody know what that file could be?

Just wondering if there is any significance to the frequency. Lately our site has been getting notably more 404 errors for alive.txt than any other uri. Is this some kind of common server log/config ...
Snaxib's user avatar
  • 175
3 votes
2 answers
3k views

Attempted access to web server

In the list of 404 errors on my web server I keep finding attempted accesses to /admin/Y-ivrrecording.php, /admin/cdr/counter.txt, /modules/extensions_batch/libs/download_csv.php or /c0nfig(!). I ...
jammon's user avatar
  • 133
3 votes
1 answer
5k views

If file exists, redirect to a certain file, else redirect to 404 from htaccess

I have this tree: libs/ html/ app/ uploads/ files/ images/ male.png female.png .htaccess download.php .htaccess index.php /.htaccess has this content: <IfModule ...
Arșavin's user avatar

1
2 3 4 5
8