Questions tagged [http-status-code-404]

404 is the HTTP status code for "Not Found"

106 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
0 answers
503 views

404 When Not Using Incognito

A very strange thing is happening on my site. When I go to a certain page I get a 404 error, but the file is definitely there. In fact when I open up the same page in incognito, the page loads without ...
Vandel212's user avatar
  • 101
0 votes
0 answers
550 views

Add fallback image for images giving a 404 error on nginx

In case of an image (png,jpg,gif) missing thus giving a 404 error, I would like Nginx to send back a fallback image e.g. https://example.com/fallback.png I tried the following with no success location ...
Onisiforos's user avatar
0 votes
1 answer
1k views

nginx, handle 404s in another location with proxy_pass location

I have a basic django application setup under nginx. So far everything runs fine. What I need is a setup so I can handle 404s under /media/ with my proxy_pass application. Currently, it shows a bare ...
benzkji's user avatar
  • 111
0 votes
0 answers
269 views

Integrate Codeigniter and Phplist 404 Nginx

Im trying to install codeigniter inside phplist and everything is running well in apache. But its getting 404 when uploaded to live server which is using nginx. I knew it must be the mod_rewrite ...
Aradea Techno's user avatar
0 votes
0 answers
106 views

Nginx rule to redirect user to a /404 url if the current url ends with index.php

I am looking for an NGINX rule for my website. If the user lands on my website with a URL having index.php at the end I want to redirect them to a /404 URL with a 404 status code. for eg http://...
Ajay Maurya's user avatar
0 votes
0 answers
526 views

Return another code than 404 if file not found on a nginx alias directive

Nginx has a root folder let's say /var/www/mysite1/ I have a file in /var/www/ that I need to be able to serve. This file sometime exists, sometime does not. If the file is not there, by default ...
Vincent Teyssier's user avatar
0 votes
0 answers
387 views

IIS 8.5 getting 404 for some images and not others in same folder

I've seen a number of posts about getting a 404 for all files or all files of a certain type. In my case, some files can be accessed and some can't. I open IIS, click on the website and switch to ...
jbassking10's user avatar
0 votes
1 answer
3k views

php-fpm couldn't find script until I moved in a specific directory

This morning I had a strange problem about finding php script files with Nginx and Php-fpm. I solved it, but I didn't understand what the problem actually was. Some details: I'm on Arch Linux and ...
bogdanos's user avatar
0 votes
1 answer
548 views

NginX redirect not working properly

I set up a redirecrt for NginX like this: location / { try_files $uri $uri/ @rewrite; } location @rewrite { rewrite ^/(.*)$ /index.php?permalink=$1 last; } it is working fine for thousands ...
Igor Mizak's user avatar
0 votes
0 answers
3k views

nginx returns 404 although the server is running and log files are being written. In the root it returns 403. Details inside

I'm not a sysadmin, I'm just a vision programmer who's trying to set up his friend's API in a localhost. I'm using nginx, and the config file my friend gave me was this: server { listen **.48....
Major Despard's user avatar
0 votes
1 answer
750 views

404 Response from NGINX when trying to setup mediawiki short urls

I have NGINX setup to serve content over localhost with HTTPS. Using the following location block, I can serve mediawiki just fine (it is in the /w folder) location ~ /w/(.*)(\.php)?$ { index index....
Lucky The Rabbit's user avatar
0 votes
0 answers
279 views

404 routing issue - AWS Linux Wordpress site

We are running a WordPress site on a AWS EC2 Linux instance and have created custom 403 and 404 error files (both html files). The files are located in the root of the website. The root .htaccess ...
Paul's user avatar
  • 103
0 votes
1 answer
332 views

.htaccess throw 404 and then 301 on nonexistent path

Currently I have this set up in my .httaccess RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !\.(php|html|txt|js|css|png|jpe?g|gif|svg|woff|ico|csv|xml|pdf|gzip) RewriteCond %{...
Sinisa Pejic's user avatar
0 votes
0 answers
2k views

NGINX proxy_pass returns 404

I have Nginx reverse proxy that proxies request to NGINX load balancer(Docker container) and 3 other Virtual Machines. Proxy works fine for all Virtual Machines, except this one. Here is my sistes-...
Miodrag's user avatar
  • 131
0 votes
1 answer
9k views

Nginx + PHP index.php not found 404

I'm running debian 9 with nginx 12 and php7.1 I've set evrrything up. Nginx does not give me anything in error log, all the PHP scripts are working 100% fine. Nginx indexes index.html as index but ...
Jezis Marja's user avatar
0 votes
1 answer
2k views

Nginx error_page not serving php files

I'm trying to set up a 404 file which handles unknown url requests using the error_page directive, the file im trying to root it to is a .php file which is in the same directory as the route. The ...
Jimjebus's user avatar
0 votes
1 answer
1k views

nginx vhosts 404 50x custom pages with assets. Need rewrite?

I have a nginx config with about 10 vhosts, and I want to have them all share custom 404 and 50x and maintenance error pages. The nginx is a reverse proxy serving angular index.html and I'm a bit ...
notbrain's user avatar
  • 219
0 votes
2 answers
840 views

How to handle these 404 errors that look like SQL errors / hacking attempts?

I have an E-commerce site (built on OpenCart 2.0.3.1). I'm using an SEO pack plugin that keeps a list of 404 errors, so we can make redirects. As of a couple of weeks ago, I keep seeing a LOT of 404s ...
TomJones999's user avatar
0 votes
0 answers
344 views

Need help on Nginx redirects for old url pattern now 404

How to redirect old urls with capturing only the variable end and add multiple possible targets before OLD URLS domain.com/product/product-link-xyz ... TO domain.com/products/brand1/product-link-...
user3228274's user avatar
0 votes
2 answers
3k views

Nginx blocks ports

I'm running a debian (jessie, 64-bit) server with nginx, jira and bitbucket installed. the url is referred to as "www.example.com" First I installed jira, opened the setup site (http://example.com:...
Zweistein2's user avatar
0 votes
0 answers
740 views

NGINX + PHP-FPM uses access_log for 404 instead of error_log

I have nginx 1.4.6 on Ubuntu with php5-fpm 5.5.9 on Ubuntu. Nginx's config for the WebSite contains: ... fastcgi_intercept_errors on; access_log /var/log/nginx/dev-vm.domain.com-access.log; ...
setevoy's user avatar
  • 334
0 votes
1 answer
2k views

How to show a 404 instead of a 403 on apache host

My site was hacked about 2 months ago so I closed the site down but there are over 1,000 spam links out there still directing to the domain. As there are no files on the domain visitors, including ...
Doug's user avatar
  • 1
0 votes
1 answer
2k views

Nginx does not load custom 404 page for WordPress blog

I recently made a custom 404 page for my WordPress blog running on Nginx. However, the page lives above my root directory. I thought I set the parameters correctly, but it doesn't seem to be working (...
Logan M.'s user avatar
0 votes
1 answer
174 views

Cant ssh or see website after home ip change, but can get http 404 and 403

I have a server in a client office, this server has a website running on nginx. A few days ago my home router and ip changed, and now I can’t ssh to the server, or see the website, the browser stays ...
Chagaf's user avatar
  • 1
0 votes
1 answer
61 views

What's the error in my HTACCESS

index page and profile page show 404 after htaccess redirection I transfered from bogger to wp.. redirected all links from year/month/postname.html to postname/ using these lines: # WPhtc: Begin ...
Ben Johnathan's user avatar
0 votes
1 answer
837 views

404 Not Found error after Parse migration

0 down vote favorite I've followed the migration guide and setup the Mongodb, NodeJS and Parse server locally on our Linux server. I'm able use the REST API to login to the game and download game-...
user356479's user avatar
0 votes
1 answer
2k views

Varnish 404 error every few hours

I wonder if someone can point me in the right direction with this. Something changed on my VPS at my hosting provider and loads of things have been going wrong ever since. One of those things is ...
WPDEVE's user avatar
  • 1
0 votes
1 answer
316 views

IIS Server Subdomain Redirection

I have a Windows Server 2012, with IIS 8 installed. I have multiple websites there. I also have the Default Website. When I create a new website like www.abc.com and abc.com, it works fine. However, ...
Mein Hat's user avatar
0 votes
1 answer
545 views

Wordpress website consuming huge bandwidth on 404 pages

I am running a website on Wordpress and there is a lot of bandwidth consumption because of hits on 404. image showing the url being targeted to generate 404.. I am sure that the url "/wp-includes/...
Ahmad Hassan's user avatar
0 votes
1 answer
9k views

Nginx throws a 404 error when trying to access a CodeIgniter (PHP) controller

I'm trying to use CodeIgniter with Nginx. I'm on development so I'm running on localhost. This is my /etc/nginx/sites-avaiable/default file: # You may add here your # server { # ... # } # ...
user2719875's user avatar
0 votes
1 answer
495 views

Our site using Akamai is returning 404 (from time to time)

We are facing an issue with sites hosted by Akamai. From time to time we can't load some websites from Akamai and the server return "404 not found". This is temporarily error and it could be that the ...
Adam's user avatar
  • 11
0 votes
0 answers
473 views

iis8.5 Not Found page, SNI and Host Headers. Refuse Connection Possible

I am using IIS8.5 to host a few internal and external sub domains. Everything is working prefect but I have one thing I would like to change and I have no idea where to start. I have set each site ...
James Weber's user avatar
0 votes
1 answer
977 views

nginx reverse proxy fail for remote server

This is my nginx.conf on cs2: user nginx; worker_processes 1; error_log /var/log/nginx/error.log; error_log /var/log/nginx/error.log notice; error_log /var/log/nginx/error.log info; pid ...
Tariq's user avatar
  • 101
0 votes
1 answer
547 views

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 ...
gabereal's user avatar
  • 101
0 votes
0 answers
338 views

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. ...
Sacha's user avatar
  • 101
0 votes
1 answer
319 views

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 ...
Artem Koltsov's user avatar
0 votes
0 answers
160 views

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 ...
Daniel's user avatar
  • 81
0 votes
1 answer
1k views

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 ...
Robert Muil's user avatar
0 votes
3 answers
4k views

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:...
ricksebak's user avatar
  • 101
0 votes
0 answers
756 views

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 ...
adrianTNT's user avatar
  • 1,149
0 votes
1 answer
191 views

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 ...
Kyle's user avatar
  • 9
0 votes
1 answer
483 views

Set Default 404 error pages across entire instance of IIS

we are currently using IIS 8 on our new windows VPS. We have a content management system we install for all our apps we build, but we are finding it incredibly painful as our hosting provider requires ...
user125264's user avatar
0 votes
0 answers
88 views

NGINX Custom ErrorPages wont work

My Server doesn't want to display a custom 500 error page. The error page for the 500 error is here: https://aixspace.de/errorpages/500-504/500.html these are my vhost configs: server { listen ...
Robin van der Linden's user avatar
0 votes
1 answer
625 views

install nginx on centos 6 but folders isnot working give me 404 not found

I've install Nginx on CentOS 6 without control panel following these steps. I got Nginx installed successfully, see this link. But I still have a folder that isn't showing and giving me "not found ...
Rami Server's user avatar
0 votes
1 answer
2k views

Nginx + Unicorn Rails Application gets 404 when requests number are high

I have a Rails application deployed using Nginx + Unicorn. Last night, when the traffic peaked, Nginx was getting lots of 404 errors. When I dig into logs, those 404 requests on the nginx side did not ...
Ben's user avatar
  • 1
0 votes
1 answer
528 views

How to redirect a 404 to https in nginx?

For some reason a Redmine installation keeps redirecting some https requests to http. I'd like to change 404 response for the vhost the pages are redirected to back to the https it should have gone ...
vfclists's user avatar
  • 1,652
0 votes
1 answer
89 views

Webmaster randomly reporting a massive increase in 404s (apparently from old sitemaps)

Well, I'm stumped. Several months back, we launched a totally new website, replacing a legacy system that was pretty messy. Part of the mess was many, many pages created that really didn't need to be ...
jhdavids8's user avatar
0 votes
2 answers
239 views

Cant hit defined virtual host on default mac installation - Please help

Cant for the life of me figure out whats wrong here. Problem: Typing transitap.local yields in a 404 error. System: Mac OSX10.7 My /etc/hosts file: 127.0.0.1 localhost 127.0.0.1 ...
RCONE's user avatar
  • 1
0 votes
2 answers
1k views

Apache+mod_jk and a specific 404 handler

I have a relatively simple Apache httpd + Tomcat via mod_jk setup that works well, but I need to have Tomcat handle certain 404 conditions. Basically, the httpd service will handle images and PDF ...
Alice's user avatar
  • 1
0 votes
2 answers
695 views

Long file path returning 404 for "hello.htm"

I have a long file path that works on my server, but a simliar path returns a 404 error when it is on my clients (IIS6) server (http://ddmat.com/). Here's the functioning file path on my server: http:...
Adam Kane's user avatar
  • 101