Questions tagged [http-status-code-404]

404 is the HTTP status code for "Not Found"

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

How to serve all files as favicons from a directory with Nginx alias?

This is what it looks now and it's almost working: location ~* \.(?:png|xml|ico|svg|webmanifest)$ { alias /var/www/site.com/htdocs/sites/all/themes/dev/img/favicons; expires 365d; ...
0
votes
1answer
21 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 ...
2
votes
1answer
29 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 ...
0
votes
0answers
29 views

does nginx support use variables along with return?

does nginx support use variables along with return? I'm trying to declare a custom error string only for a specific group of HTTP errors, something like: error_page 401 403 404 502 /error.json; ...
0
votes
0answers
35 views

404 error with Nginx on ubuntu when creating wordpress user

I have been running WordPress 5.4 successfully for some time on Nginx but recently have come across a persistent issue when creating a new user it directs me to a 404 not found page, with no errors in ...
1
vote
0answers
22 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 ...
0
votes
0answers
14 views

URL doesn't work and return Error 404 using React Router

I am developing a website using React and Semantic UI as a front-end framework. Using React-Routing I am trying to use different URL addresses for the various pages of the website. The main page is ...
-1
votes
3answers
255 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 ...
0
votes
0answers
27 views

Return 404 if key exists in querystring

Recently had a Wordpress website hacked and it submitted URL's to google in the format http://www.example.com/?ck=some-pharma-related-string It seems to be a bit different than the "Pharma Hacks" ...
0
votes
1answer
29 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 ...
1
vote
0answers
192 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 ...
0
votes
1answer
33 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 ...
0
votes
0answers
25 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 ...
0
votes
1answer
261 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 ...
0
votes
1answer
58 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 ...
0
votes
0answers
43 views

i am gettong error code 404 in PowerBI M query using cognitive services

i am trying to write sentiment score for my below data. Sample Data: ID,Text Sample Data Query: (Source as table) as any => let JsonRecords = Text.FromBinary(Json.FromValue(Source)), ...
2
votes
1answer
952 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 ...
0
votes
1answer
43 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/ ...
0
votes
0answers
264 views

Tomcat 404 error When deployed on Ubuntu

Tomcat :9.0.16.0 Ubuntu:18.04 I have deployed the Spring project to Ubuntu. I stored the data in rds, and when I looked at the data after connecting to rds on the localhost, it worked fine. and The ...
0
votes
1answer
188 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=/...
-1
votes
3answers
125 views

Change WordPress root directory in nginx

I have a website that address is site.com and also a WordPress that is site.com/blog. I would change the WordPress root directory in the nginx. here is my config: server { listen 80 ...
0
votes
0answers
30 views

Block multiple 404 requests using Cloudflare

I keep getting 404 requests from specific IPs that are clearly just sniffing for weaknesses. I would like to be able to block any IP (for 12 hours or so) that has 10 or more 404 fails in a 5 minute ...
0
votes
0answers
320 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....
0
votes
1answer
162 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....
0
votes
1answer
180 views

Nginx + Passenger: Cache 404 urls

Context I have a Rails app with a nginx server and Passenger. The app is dynamically generating pages based from the request url: if the url exists in the database the app renders the corresponding ...
1
vote
1answer
35 views

WordPress site not throwing 404 for invalid URLs | Nginx - Ubuntu 16.04

I've set up a LEMP environment on an Ubuntu 16.04 machine, following the How To Install WordPress with LEMP on Ubuntu 16.04 tutorial on DigitalOcean's community archive. All works great, except for ...
0
votes
0answers
85 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 ...
1
vote
2answers
1k views

Unexpected 404 error on all routes laravel application all of a sudden - NGINX|PHP-FPM

I have the following nginx config file ## # You should look at the following URL's in order to grasp a solid understanding # of Nginx configuration files in order to fully unleash the power of Nginx....
0
votes
1answer
335 views

nginx set different document root for a proxypass

I'm just trying to run a nodejs app I made on a proxypass domain, and have it work exactly as it did on my desktop. However, for some reason, even though I defined a seperate document root for this ...
0
votes
3answers
137 views

Argument for providing 200 response on non-existent file

Does it ever make sense for a server to provide a 200 response when a GET request is made for a non-existent file? Shouldn't the response always be a 404? Here's the response header: {'Date': 'Tue, ...
0
votes
1answer
106 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 %{...
-2
votes
1answer
80 views

404's on large request pages [closed]

We just moved to a linux apache cpanel vps server. Some pages with large numbers of images are receiving many 404's per page load. Some images load while others result in a 404. different images get ...
1
vote
1answer
332 views

Disable cache for 404 ONLY, in apache 2.2

Is there any method to call RESPONSE_CODE in http.conf file --> check if it is ="404" --> Disable cache for 404 ONLY.. P.S. I am using Apache 2.2. For apache 2.4 I saw some help as below: <...
0
votes
1answer
344 views

Apache2 Block IP with 404 Page or Timeout Error

Is there any was to configure Apache2 to block certain IPs, but instead of returning a 403 page; do one of the following: Return a 404 page Make the connection time out (as it would say in a web ...
0
votes
1answer
907 views

multiple nginx config files under nginx/conf.d/ and 404

A seemingly very simple reverse proxy config is giving me headache here. Main config file /etc/nginx/nginx.conf has "include /etc/nginx/conf.d/*.conf;" Then I have two conf files under conf.d: ...
0
votes
1answer
787 views

IIS starts serving 404's (works for a while!)

This is a funny one that's just started happening. Changes I've recently made: Updated website (not major update, small code changes/bug fixes) Added URL re-write rules to 301 forum to different ...
0
votes
0answers
896 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-...
1
vote
1answer
628 views

Mitigating 404 bomb with Nginx

I am hit with 404 queries and this is bringing down my machine. Close to all of my pages are http cached and I have some basic Dos protection with limit_conn_zone $http_x_forwarded_for zone=addr:10m;...
2
votes
2answers
998 views

Nginx Cache even if it's a 404 response

I use 404 rewriting url: error_page 404 = /url_rewriting.php; I cache images generated with a render script being in a folder /render/: set $no_cache 0; location ~ /render/ { ...
0
votes
2answers
4k views

Why does my 404 return 200 status code?

Not sure why but all of my error pages respond with a 200. That's feels a little strange to me, the pages exist but shouldn't they have their corresponding status codes? How do I get Nginx to render ...
0
votes
1answer
991 views

IIS returning 404 on PDF File

I have a IIS 10.0 server that everything is working fine, with one issue. Any .pdf file returns 404. I know permissions are correct as all the image files in the same folder are working fine. The ...
0
votes
1answer
8k views

Apache Reverse Proxy get 404 error

I set up an apache reverse Proxy Server. In general it works and does what it should. But now i want it to Proxy a request to an external URL. While a wget on the URL works the Proxy keeps giving me a ...
0
votes
1answer
115 views

What does a 404 response look like on embedded files

Say an image is embedded in webpage, but the image is not on the server, not found, and the server responds to requests for the image with a 404 error. The image is not displayed on the webpage, the ...
0
votes
2answers
2k views

Apache httpd serve a 200 response with static resource if requested file is not found

I am looking for a way to configure httpd server to respond with an image if requested file is not found. I know it can be simply done by: ErrorDocument 404 "/static/thumbnails/404.png" This one ...
1
vote
1answer
1k views

How to make Nginx redirect to 404 if subdomain doesn’t exist in localhost domain

This is my localhost server configuration for Nginx. This is at /etc/nginx/sites-enabled/development/localhost server { listen 80 default_server; server_name localhost; root /var/www/html;...
4
votes
2answers
5k 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://...
1
vote
1answer
909 views

Why Nginx calls for invalid certificate in non-existent subdomains just to redirect to 404?

Have two server blocks. default_server block inside http block of nginx.conf: server { server_name _; listen 80 default_server; listen [::]:80 default_server ipv6only=on; listen 443 ...
1
vote
1answer
36 views

404 pages displaying name of page

My website works great; Google Cloud Platform VM running Ubuntu and Apache2. Well, except for one thing; I can't get 404 pages to work. I followed several guides and managed to do something really ...
1
vote
1answer
336 views

Send Apache request to some form of dev/null, nothing or nowhere

This question I have not been able to get an authoritative answer on, but it's interested me for years: Taking Apache with matching rewrite rules, say: 1 set of matches triggers the 403 Forbidden ...
-1
votes
3answers
2k views

NGINX is not found (20: Not a directory)

When I try to access a file which is named "file" I got the Error 404 - file not found. I checked on the Server if it exists. Yes it does exist. I checked if the file is owned by the webuser. Yes ...

1
2 3 4 5
8