Questions tagged [http-status-code-404]

404 is the HTTP status code for "Not Found"

Filter by
Sorted by
Tagged with
1 vote
1 answer
370 views

Nginx throwing 404 errors when assets from subfolder of the root are requested

My nginx config file looks like: passenger_enabled on; passenger_ruby /home/inspection/.rbenv/shims/ruby; rails_env production; root /home/inspection/app/current/public; location /build/ {...
Arup Rakshit's user avatar
1 vote
2 answers
279 views

404, 50x error handling HTML pages in nginx is not detected

nginx version: nginx/1.18.0 This is my 'nginx' conf default 'vhost': cat /etc/nginx/sites-enabled/000-default server { listen 80; listen [::]:80; server_name example.org; return 301 ...
Mévatlavé Kraspek's user avatar
1 vote
1 answer
280 views

Trapping misformatted paths to Redirect to 404 instead of returning 403

Owing to an error long ago our company web site has been serving image URLs containing a significant amount of white space. E.g. http://www.example.com/ /assets/ProductPhotos/...
AristotleO's user avatar
0 votes
1 answer
83 views

Where can i find the 404 template from OpenLiteSpeed?

I want to change/customize the standard 404 (Not Found) page/template from OpenLiteSpeed. But where can i find the 404 file via terminal? I'm searching in: cd /usr/local/lsws/ But can't find it. Can ...
DSTUDIOS's user avatar
0 votes
1 answer
43 views

asp.net cannot upload more than 25mb or receive 404 - File or directory not found

The upload used to work without issue before, and I cannot find anything that might have changed, except I did do updates on all servers. I rebooted all servers and tried uploading files, and the 404 ...
CodingEE's user avatar
  • 101
1 vote
0 answers
81 views

Change return path nginx

I'm trying to get file downloading in the local Telegram Bot API work. I found an example on github how to do it with nginx: https://github.com/aiogram/telegram-bot-api/tree/master/example. It's ...
NitroRX's user avatar
  • 11
0 votes
3 answers
3k views

Nginx: *42 upstream sent too big header while reading response header from upstream - random behaviour

I have an ec2 instance running nginx. Here is my nginx config: server { listen 443 ssl; root /var/www/angular/dist/testenpoint-website-angular; index index....
PilotPatel's user avatar
-1 votes
1 answer
218 views

Does anyone by any chance happen to know anything about URL 404 page

Does anyone by any chance happen to know anything about URL 404 page Error resolutions If so I appreciate your feedback Here is an example below actually exact Thanks again much appreciated!! “Not ...
Tyler's user avatar
  • 1
0 votes
1 answer
71 views

What is the purpose of /server.txt

One of my clients suddenly started seeing ~40k requests a day for "/server.txt" to their webserver that result in an HTTP 404. This is expected behavior as the file doesn't exist and isn't ...
Patrick Jones's user avatar
0 votes
0 answers
164 views

Full URL Required for 404 Page To Work — Apache

On a project I'm working on (currently on localhost on MAMP), the 404 page only works if I include the full URL with the ErrorDocument statement in the .htaccess file: ErrorDocument 404 http://...
paulo77's user avatar
  • 101
1 vote
1 answer
4k views

NGINX Reverse proxy acme-challenge http to 404

First sorry for my poor english^^ I tried to set up a reverse proxy, and it work fine. Now i want to obtain a ssl certificate with letsencrypt and i failed^^ On the reverse proxy i creat a file 1234....
ArnOCP's user avatar
  • 11
0 votes
0 answers
135 views

URL Shows 404 but adding .php at the end displays

I have set up this website and it's working perfectly, however, extensions such as domain.com/dashboard will display a 404 but when I add .PHP at the back -> domain.com/dashboard.php it displays. ...
Brun0L3z's user avatar
0 votes
2 answers
2k views

GCP External HTTPs Load Balancer - 404 - 503 - SSL Exception (Remote host terminated connection, read handshake, socket closed & upstream connect)

We're load testing a MIG (with 2 instances) hosted behind the HTTPs load balancer using JMeter. Observation 1: We randomly receive 404 error and 503 error, for 404 we see an entry get created within ...
Gaurav_N17's user avatar
0 votes
1 answer
966 views

IIS (10.0.17763.1) New Site Fails with 404 Errors

I am hoping that someone may have the answer to this. I created a new site on IIS (full disclosure, I created the first one incorrectly and removed it, if that matters). My IIS server has several ...
Charlie's user avatar
  • 21
0 votes
2 answers
91 views

Is there a technical requirement to serve 404 responses?

Is there a technical requirement (e.g., RFC) to serve a 404 response? Or does some other problem emerge if requests not found are dropped or replies empty?
Paul's user avatar
  • 3,047
0 votes
0 answers
104 views

Apache Filesmatch regex issue

I'm trying to block all files that contains the keyword cpf and I've entered this into the apache2 configuration: <FilesMatch "cpf.*$"> Require all denied </FilesMatch> and ...
Adam Larsson's user avatar
0 votes
1 answer
1k views

Cannot access my website

everyone! I'm linux-enthusiast and I have an issue with an nginx on debian VPS. Until recently I could access my static website but now I can't. This is my sites-available/example where example is my ...
stereophonicSound's user avatar
0 votes
0 answers
184 views

Apache log says "404" but my ErrorDocument is ignored and browser says "The requested URL ... has moved"

I'm trying to setup some customer error pages on our Apache servers, which seemed straightforward. The 503 is working right, but the 404 is not. They're setup the same: <LocationMatch "/my/...
JCassidyOhio64's user avatar
2 votes
1 answer
3k views

NGINX block location access and redirect to custom error page

I have a issue with my NGINX setting with redirecting to a custom error page on another location (incl. css, images, js) if a error page should be thrown. At first I would like to block access to an ...
devKyrios's user avatar
1 vote
2 answers
214 views

ErrorDocument and extension less links not working together

On my website, I have the following code to omit the extension of php pages RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^\.]+)$ $1.php [NC,L] I also added ...
Whip's user avatar
  • 250
2 votes
2 answers
1k views

Why is Apache2 not finding my WSGI app?

In my previous question, I asked how to make mod_wsgi use a specific Python version. Following the answer from that question, I created a Python 3.9 virtual environment and made WSGI use it. However, ...
ThatCoolCoder's user avatar
1 vote
1 answer
5k views

IIS 10 URL Rewrite giving 404 error

I am currently stuck with my rewrite rules, and I would need some hints about it. Here's the situation : We have two websites, one is website.com, the other one is website-staging.com (just examples ...
SBO's user avatar
  • 542
0 votes
0 answers
253 views

Raspberry pi running nginx responds 200 for localhost, 404 when accessed through hostname

I have set up a vanilla installation of nginx on a raspberry pi. server configuration: server { listen 80; listen [::]:80; root /home/pi/www; index index.html index.htm; ...
dma's user avatar
  • 101
-1 votes
1 answer
853 views

Setting up a catchall with NGINX

I'm having a problem with my nginx server configuration. The current behavior is that if a domain can't be found in any of the configuration files, it will redirect to a random other configuration. ...
Katai's user avatar
  • 185
0 votes
1 answer
701 views

Why does Apache server return 404 on subfolder, when it was previously working

I just installed some new SSL from GoDaddy on my Apache Ubuntu server. I then restarted via SSH and everything looks good. The root site (a wordpress install) now loads fine with https. However, there ...
Dave's user avatar
  • 101
1 vote
1 answer
2k views

Nginx/1.18.0- 403 Forbidden - PHPIPAM on Ubuntu 20.04

I'm trying to get phpIPAM working on my Ubuntu but I have some problems: solving this 403 Forbidden error. When I run tail -f /var/log/nginx/error.log, I see this: [error] 2898#2898: *1 directory ...
Johann's user avatar
  • 11
1 vote
1 answer
351 views

Nginx - Some resources not found, when they were previously being loaded

I have just encountered a very weird issue. Some of the fonts that I have used in my website and an svg are not loading, while yesterday everything was working fine. The only changes that I've ...
user9927059's user avatar
0 votes
0 answers
396 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
1 vote
1 answer
846 views

Nginx + Express app in subdirectory/location, returning 404

I want to make an express app accessible through http://website.com/app and use nginx as a reverse proxy as well as to serve static files. This is my nginx configuration: upstream app { server ...
Felix's user avatar
  • 11
0 votes
1 answer
584 views

My Magento only can load the first front page, and all the page are 404. Nginx server configuration issue

I am trying to run Magento 2 on WSL, ubuntu Nginx webserver, localhost I only able to load my website first front page, but the rest of the pages are 404 not found. I only modify the /etc/nginx/sites-...
Paul Fan's user avatar
  • 103
0 votes
0 answers
474 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
1 vote
1 answer
3k views

IIS Server, sudden 404.4 on all sites The resource you are looking for does not have a handler associated with it

I have a long standing IIS 7.5 box that suddenly stopped working mid morning today. Something has obviously changed but I have been unable to determine what and would appreciate any suggestion. All of ...
Steve's user avatar
  • 21
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
260 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
98 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
1 answer
396 views

Constant bot probing on my website

Looking at my IIS logs from Godaddy, I can get hundreds of 404 errors a day, where either some script kiddies or bots are constantly looking for vulnerabilities or pages/directories to exploit. ...
SteveFerg's user avatar
  • 103
0 votes
0 answers
431 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
1 answer
942 views

Return file with status code from remote server in Nginx

I am trying to set up my SPA to return 404 for invalid resources by having nginx do a backcheck for the resource before responding. All this is to avoid invalid pages coming with 200 and thus having ...
Pithikos's user avatar
  • 139
2 votes
1 answer
1k views

How to use local error_page when remote error_page not found?

I'm trying to create a fallback for my error_page. Basically, the logic should be something like the following: load foobar.html does not exist on remote server -> load 404.html from remote server ...
Prisoner's user avatar
  • 316
1 vote
0 answers
46 views

Why are my error logs full of 404s for "adult" content?

Idly perusing my site's error logs this morning, I was shocked to discover that a large number of rather explicit had been requested. (I don't mind telling you that I very nearly sprayed my cold brew ...
Tom Wright's user avatar
-1 votes
3 answers
6k views

How can i do a redirect with 404 as status code in Nginx [closed]

We have moved our website to a new domain and our SEO department want to have some redirect from the old urls to the new urls with 404 status code. I dont know if it is possible and want to collect ...
qvpham's user avatar
  • 109
0 votes
1 answer
269 views

Nginx Reverse Proxy Issues

I have a nginx reverse proxy configured in front of a webapp. It's currently functional but there is a bug that when a user refreshes the page the page returns a 404 if their page is not the ...
GraycorSatoru's user avatar
1 vote
0 answers
998 views

Nginx - Laravel routes not working in a sub directory

I am trying to run laravel on aws server in a sub-directory, the website functions properly when pointed to root location, but when pointing it to a sub-directory in a URL the routes does not work, i ...
Somesh Tripathi's user avatar
0 votes
1 answer
400 views

Can't configure a clone of Crowd - /crowd/console/ Not Found

I'm attempting to create an instance of Crowd, mirroring its Live counterpart for our Testing environment. I've cloned the container and changed some few key configuration, as described below. The ...
insideClaw's user avatar
0 votes
0 answers
331 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
2k 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
485 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
3 votes
1 answer
4k 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
0 votes
1 answer
80 views

How to block attempts for phpMyAdmin? [closed]

I converted my website from asp.net to .net core and host on same server. Now, website gets hundred of hits daily from different IP's trying to access like below /php-myadmin/ /wp-content/ /mysql/ ...
Bunty Choudhary's user avatar
0 votes
1 answer
651 views

Squid negative_ttl not working

Setup $ squid -v Squid Cache: Version 3.5.20 Service Name: squid configure options: '--build=x86_64-koji-linux-gnu' '--host=x86_64-koji-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/...
Paul Draper's user avatar

1
2 3 4 5
8