Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [http-status-code-404]

404 is the HTTP status code for "Not Found"

-2
votes
1answer
48 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 ...
0
votes
0answers
8 views

How do I help Cloudflare / Apache / Wordpress to cache 404 pages?

Using Newrelic I've found out that 65% of load on my web server was created from the 404 rendering of static resources, because the 404 page was rendered also for the missing static resources (jpg, ...
1
vote
1answer
46 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
127 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
183 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
187 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
338 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-...
0
votes
1answer
178 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
1answer
178 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
0answers
17 views

Initial loading in IE always returns error 404 when the URL is accessed via Favorites in IE

We have an internal site that is accessed globally and the users are required to use IE (for now the version is 11). We are facing an issue where the site always returns "Error 404" when accessed via ...
0
votes
2answers
995 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
373 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
3k 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
48 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
599 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
859 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;...
3
votes
2answers
1k 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
360 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 ...
0
votes
0answers
508 views

How to replace /wp-admin with other URL in Nginx?

I have a Wordpress on my website and I want to hide and secure access to the Dashboard. It works inside VDS with Nginx. I want a visitor to see 404 error page if he visits /wp-login.php or any /wp-...
1
vote
1answer
27 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
180 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 ...
-2
votes
2answers
651 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
vote
1answer
260 views

Windows Server VM in Azure HTTP not working but HTTPS OK

Another admin in our company recently setup a windows azure VM. Not sure what version of Windows, as I can't find that anywhere in the portal. I setup IIS through the server manager dashboard, and ...
0
votes
1answer
2k 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 ...
7
votes
1answer
7k views

What does ALPN, server did not agree to a protocol mean?

I see this quite regularly when using various calls in curl. I'm not sure if its the root cause to some of my returns resulting in error 400 but as a newbie just curious more than anything.
0
votes
1answer
471 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 ...
0
votes
1answer
382 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 ...
0
votes
0answers
311 views

nginx Reverse Proxy always 404s

I have tried multiple ways to resolve this, but any configuration I have attempted results in a 404. The config is as follows: 2 Servers A and B, both behind a "Round Robin" Load Balancer. Certain ...
0
votes
2answers
76 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 ...
0
votes
1answer
99 views

Install Sonerezh as a subdomain in Nginx

when installing Sonerezh it indicates to me that it does not find install. I put the configuration code of the subdomain musica: server { ## Escucha en el puerto 80 (HTTP) ...
0
votes
0answers
134 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-...
2
votes
1answer
5k views

NGINX can't access html files and downloading php files

Everything was working fine, but I did a lot of modifications and then I could get only a blank page. It was a fresh install of NGINX so I decided to delete files in /etc/nginx and to reinstall it. ...
0
votes
1answer
917 views

When access CloudStack UI got HTTP Status 404 error

I have installed CloudStack Management Server followed this guide: http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.9/management-server/index.html Versions CloudStack: 4.9 ...
2
votes
4answers
6k views

IIS randomly returning INET_E_RESOURCE_NOT_FOUND

I am using IIS 7 on Windows 2008 Server for an ASP.NET 4 application using Bootstrap. The server has a private IP address to use at work, but is also accessible through a public IP address from ...
0
votes
1answer
390 views

CGI stopped working on setting Nginx as reverse proxy for apache

So I am running a site www.example.com. Initially, I was using apache and any hit to my site would be redirected to www.example.com/path. Now this redirection is defined in my httpd.conf like: ...
0
votes
0answers
130 views

Error 404 page redirects to index.php

I've got a question about the error 404 page in Luna theme. When I'm trying to enter the 404 page by typing some wrong urls it redirects to index.php... I modified my .htaccess with this lines: ...
0
votes
1answer
98 views

Bad request when accesing through HTTPS to www subdomain using nginx

I have no problem when accessing the domain without www. This is my config file: server { listen 443 ssl; server_name .terralmarket.es; proxy_set_header Host $http_host; ssl_certificate /etc/...
-1
votes
1answer
285 views

Unable to access domain.com/phpmyadmin giving me 404 error

I hope you are fine. I installed for more than one year Vesta in my CentOS 7 everything is working fine, but a few days ago I cant access phpmyadmin. In the past, I just go to Vesta click on ...
0
votes
2answers
103 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:...
0
votes
1answer
3k views

IIS 10 Custom 404 Error pages not working

Windows 10, IIS 10, Classic ASP, .NET v2.0 Classic Custom 404 Error pages that have been working on my test machine for years, with Windows 7, no longer work within Windows 10's IIS. I set everything ...
1
vote
2answers
1k views

How to trouble shoot 404 error

Few days ago I faced an interview and one of the questions was what would I do if I get a 404 error from a webserver. My answer was check the logs. The interviewer said that first I have to ping and ...
2
votes
2answers
5k views

Nginx status page not found

I'm trying to enable the Nginx status page on my Centos 7 server. I installed Nginx from the EPEL repository, Nginx is built with staus page support: [root@server ~]# nginx -V 2>&1 | grep -o ...
10
votes
3answers
2k views

After enabling HTTPS on my Apache2 server - I get 404 errors on every request [closed]

Okay, so I've had no experience with SSL/HTTPS ever before, I've only ever dealt with standard HTTP. Recently I've started work on a site which will need SSL. So of course, I've gone out and ...
0
votes
2answers
1k views

Directory listing ain't working on nginx showing 404 error

UPDATED nginx.conf FILE AND ANYTHING ELSE TO THE LATEST STATE BUT STILL GETTING 404 ERRORS :-( So i was trying to setup directory listing on my server with nginx, i followed the instructions step-...
1
vote
0answers
293 views

Nginx Reverse Proxy - Bypass Server with Code 404

I was wondering if there is a way to setup the NGINX Reverse Proxy to "bypass" a server in a list that responds with 404 (or other error codes). I have a clustered image board that I am doing bulk ...
0
votes
0answers
536 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; ...
0
votes
1answer
550 views

Nginx Setting expires headers cause 404

i'm using nginx as reverse proxy. I'm already redirect port 80 to 8080, redirect non-www to www and enabled gzip. Al this works. Now i need add expires headers Following many posts and answers to ...
0
votes
1answer
581 views

404 after setting up lets-encrypt SSL for nginx

So I followed this guide to set up letsencrypt ssl for nginx using the acme script, and it all worked great, I have it setup and I can access my site (wasabi.guru) via ssl, however it returns with a ...
1
vote
1answer
169 views

Redirect non existent pages works with domain.com/asdasd but not with domain.com/index.php/page.html - Confluence

I have migrated my site from Wordpress to Confluence, and modified the 404 Error page to redirect to the main domain home page. This works if i type https://www.freesoftwareservers.com/asdasd But if ...
1
vote
1answer
3k views

Nginx redirect all 403 to 404?

I'm trying to get 403 responses to be exactly identical to 404 ones. Not sure if there's a proper way to do it, but setting error_page 403 404 is my current method. Which works, but it rewrites the ...