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
0
votes
2 answers

nginx use rewrite as dynamic 404 image

I want to get a dynamic 404 response depending on the requested url: foo.jpg doesn't exist http://example.com/img/style/thumbnail/foo.jpg should show http://example.com/img/notfound/thumbnail.jpg with a 404 header status I got the…
jan
  • 118
  • 1
  • 3
0
votes
1 answer

nginx: how to cache negative FastCGI responses only

Need some collective brainstorming :). There is a heavy PHP application (e.g. Magento) and each time a visitor hits a non-existent page (or there is a problem with a particular part of the application and it returns errors) the load on the…
galaxy
  • 1,974
  • 1
  • 13
  • 15
0
votes
1 answer

kohana 3.1 in subdirectory + ubuntu 14.04 + php-fpm + nginx 404 errors

i have an old kohana app that i'm trying to put on my VPS but can't seem to get it working. i've spent hours googling and looking at cached forum answers. i have tried them all and nothing seems to work. admittedly, i have no idea how to deal with…
gabereal
  • 101
0
votes
0 answers

Files 404 unless owned by 0:0

When I upload files to my staging server (CentOS 6.5, Apache 2.2.26) - such as images or PDFs - via FTP, or by using a file upload script I created (using Laravel 4), they 404 even though they exist. However, any files that are pulled via git are…
Sacha
  • 101
  • 2
0
votes
1 answer

404 not found error on Rails app with Helicon Zoo on Windows Server

I'm trying to run Rails App with Helicon Zoo on Windows Server 2008 R2. For the test case I used Redmine 2.3 that goes with the Helicon Zoo module. Redmine has been installed successful, but it is available only from local network. I've configured…
0
votes
0 answers

google webmaster soft 404 on 301

I'm looking through google webmaster that my page is generating soft 404 errors (https://support.google.com/webmasters/answer/181708?hl=en) google says: We recommend that you always return a 404 (Not found) or a 410 (Gone) response code in response…
0
votes
1 answer

yum search fails when run as non-root user

My yum has started failing to do search as a non-root user. This was working previously, and then something has been gummed up: sudo yum update works fine, as does sudo yum search blah. yum search blah, though, generates pages of errors and cannot…
Robert Muil
  • 101
  • 2
0
votes
1 answer

Handling 404's with HAProxy

I have a bunch of domains passing to a Resin cluster through an HAProxy. The idea is, when I receive a 404 because of a non-existent subdomain, I want to redirect it to the existing page, like this: test123 is a non-existing subdomain, so if I make…
Masterl1nk
  • 147
  • 2
  • 12
0
votes
1 answer

Why do I have requests to "/usr/share/nginx/www404"?

I have requests to /usr/share/nginx/www404 in my NGINX logs. Note that www and 404 are mashed together. The according line in my nginx.conf is error_page 404 /404.html; and there's a 404.html in my web root folder, sure. Clean config files here…
Sliq
  • 142
  • 1
  • 8
0
votes
1 answer

404 on localhost whith apache on fedora

i'm a newbie and using the cs50 appliance(based on fedora) which is made for cs50 course on harvard university. we use the appliance as a virtual machine and they have set everything ready and any necessary tools installed so we just start…
asedsami
  • 103
  • 3
0
votes
3 answers

Tomcat logging and mod_proxy

I have Tomcat running on port 8080, and when I send a request directly to Tomcat it works fine: curl -IL http://localhost:8080/myapp HTTP/1.1 302 Moved Temporarily Server: Apache-Coyote/1.1 Location: http://localhost:8080/myapp/ HTTP/1.1 302 Moved…
0
votes
0 answers

Apache error log not showing full path of 404 failures

If I have a working path like /gallery/landscapes and I try to access this inexistent url: /gallery/landscapes/whatever I see the 404 error in my browser but the apache log says that I had an error at this location: /gallery/landscapes truncating…
adrianTNT
  • 1,007
  • 5
  • 21
  • 41
0
votes
1 answer

Apache 2.2 serving 404s and not logging after server reboot

I previously had Apache 2.2 running a few virtual hosts on my Ubuntu 12.12 Digital Ocean droplet. Then I wanted to increase the server RAM, so I quit with shutdown -h 0 (without stopping Apache, or anything else). I resized the RAM and rebooted the…
0
votes
1 answer

Redirect to default image when file is not found

From an iOS app I upload small avatars of Apple Game Center users to a web server, into an /ios-avatars/ dir. But some players do not have any pictures. By using Apache mod_rewrite is it please possible to redirect "not found" requests to files like…
Alexander Farber
  • 714
  • 4
  • 16
  • 38
0
votes
1 answer

Openshift PHP app throws "404 Page not found error" with custom domain name

I have a PHP app on Openshift which is working fine with the native URL (e.g xyz-xy.rhcloud.com). Later I added an alias to the app(e.g, www.xyz.com) and I also updated the CName in my Zone file at godaddy.com. When I enter www.xyz.com, it redirects…