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
0 votes
4 answers
111 views

nginx wont show site.com/statz - why?

I've configured nginx to host a website at website.com, blog.website.com, but now when I make a new config in /etc/nginx/sites-available - it wont allow me to access content in the path: website.com/...
user700070's user avatar
1 vote
0 answers
100 views

How to block access to specific files via fail2ban?

Within my logs there are loads of accesses to files that do not exist, typically to WP- or phpMyAdmin installations. These are obviously automated scripts that try to find security vulnerabilities. My ...
Elmi's user avatar
  • 121
1 vote
0 answers
49 views

weird /ws/info requests on our server: is our client compromised?

We have a big website on a virtual server that runs fine. We have a few hundred clients. Since a few weeks, we saw that with exactly ONE of these clients there were 404 references to hrefs like www....
Roemer's user avatar
  • 111
0 votes
0 answers
144 views

Google Cloud Standard App Engine 404 Error

I have a project set up on Google Cloud App Engine Standard as a Flask web app and when I deploy it and access the website, it always returns a 404. I have tested the deployment locally and it works ...
PopsicleSnow's user avatar
0 votes
1 answer
549 views

NGINX shows index but 404 when opening other path

My server runs NGINX. When visiting DOMAIN.org I can see my index page getting presented correctly. Visiting any other link such as DOMAIN.org/path1 results NGINX showing the standard 404 page. My ...
IHateCoding's user avatar
1 vote
1 answer
786 views

Nginx reverse proxy to apache server, redirection gives 404

I have this setup with angular and spring boot project having nginx reverse proxy to apache for serving angular application and embedded server for spring boot reverse proxied through nginx. Now I am ...
sarp's user avatar
  • 11
1 vote
0 answers
869 views

All routes return 404 with Symfony app and nginx

I think title says it all, this is my nginx config file. I should mention that locally everything is working fine in dockerized environment so I think it will be nginx related problem. Also the React ...
jnd's user avatar
  • 13
-1 votes
1 answer
1k views

nginx refuses to redirect all 404 pages to my index.html

I want Nginx to redirect all pages that are 404 to my index.html. This nginx is running as a container. Yes I have confirmed nginx is actually being reached as the docker-compose log output shows the ...
Dave's user avatar
  • 396
1 vote
1 answer
1k 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
1k 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
614 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
150 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
116 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
  • 211
1 vote
0 answers
141 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
12k 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
513 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
171 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
283 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
7k 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
255 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
3k 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
1k 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
  • 29
0 votes
2 answers
120 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,213
0 votes
0 answers
155 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
2k 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
299 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
3 votes
1 answer
5k 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
282 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
  • 260
2 votes
2 answers
2k 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
2 votes
1 answer
9k 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
  • 572
0 votes
0 answers
292 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
1k 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
  • 225
0 votes
1 answer
837 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
3k 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
605 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
593 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
970 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
  • 19
0 votes
1 answer
1k 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
623 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
5k 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
278 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
117 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
575 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
587 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
2k 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
  • 149
2 votes
1 answer
2k 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
83 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
9k 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
437 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
2 3 4 5
8