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
3 votes
2 answers
4k 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....
Ajeesh's user avatar
  • 131
3 votes
1 answer
2k views

Getting 404 on any text file (including robots.txt) with nginx

I recently moved my CentOS 7 machine from an Apache web server to an nginx web server, and I'm still working out various issues as I learn the in's and out's of nginx. One issue I have stumbled upon ...
J.W.F.'s user avatar
  • 348
2 votes
1 answer
4k 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
2 votes
1 answer
7k views

IIS 7.5 returning a 404 for one MVC route, but only when deployed

I have a site that is working fine on my local dev machine. When I run everything in IIS Express, the site is working fine. However, when i deploy my app to production, everything but one route is ...
SpaceCowboy74's user avatar
2 votes
2 answers
300 views

Re-uploading file with unicode filename creates identical duplicate

I'm running a Django site on a Debian 6 system, with a gunicorn server and nginx 0.7.67 handling static files. The filesystem locale is set to sv_SE.UTF-8. I got a problem where another user uploaded ...
Samuel Linde's user avatar
2 votes
0 answers
3k views

redmine gives 404 error after installation

I am using Debian squeeze with nginx and mysql. After raking db and loading default data to redmine. When i try to visit redmine in a browser, http://ipaddress:8080/redmine, I get a 404 error Page ...
Sankaranand's user avatar
2 votes
1 answer
4k views

Error 404 when accesing newly created ASP.NET website on IIS 7.0

I've created an ASP.NET website and published it to a file from visual studio. Then I've copied my folder to the inetpub\wwwrot directory. Next under IIS I've converted this folder to the application. ...
Wodzu's user avatar
  • 121
1 vote
0 answers
25 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
1 vote
1 answer
745 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
1 answer
435 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
1 vote
0 answers
110 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
1 vote
2 answers
246 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
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
898 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
1 vote
0 answers
58 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 vote
0 answers
1k 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
1 vote
1 answer
126 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 ...
simonlehmann's user avatar
1 vote
1 answer
4k 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;...
rplaurindo's user avatar
1 vote
1 answer
781 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 ...
Chris J's user avatar
  • 137
1 vote
0 answers
836 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 ...
konata_fan337's user avatar
1 vote
1 answer
209 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 ...
FreeSoftwareServers's user avatar
1 vote
0 answers
69 views

Wordpress/IIS/PHP cannot download files with non-ASCII characters

I have a Wordpress installation on a Windows IIS with PHP. It is not possible to download files from the website that have been uploaded with non-ASCII characters. Renaming the files with ASCII ...
Mikkel Bayer's user avatar
1 vote
0 answers
1k views

iis 8 basic authentication 404 error

I deployed a .Net application on Windows Server 2012. The application works fine when no authentication is enabled(with anonymous authentication). When I enable Basic authentication, the site ...
user53864's user avatar
  • 1,753
1 vote
0 answers
25 views

Can 404 errors be called as wasted computation power ? Can a lot of 404 errors have an effect on servers ?

Let's say that a lot of people use a link where there's nothing on the server and it throws a 404 status code. Would it mean that the server would have to search its entire database for that resource ...
user2266748's user avatar
1 vote
0 answers
3k views

IIS 8.5 Instant 404.0 error on MVC site

I have an MVC site which I have published to my server. It has two different roles for internal and external users. Externally (using www.oursite.com) the site works fine. when we try to access it ...
Jake's user avatar
  • 205
1 vote
0 answers
2k views

nginx rewrite throw 404 with last and break

I have a virtual host like below for my Yii website server { root /var/www/code; index index.php index.html; server_name example.com; location / { rewrite ^...
Alaa Alomari's user avatar
1 vote
0 answers
2k views

IIS 7.5 giving 404.19 "Denied by filtering rule" if URL contains "test" - No filtering rule defined

my IIS is giving me a 404.19 if a certain URL contains the string "test" in any sort or form. For example: http://test2008r2-1/search.php?query=test&type=and&start=1&results=5 and http://...
Worp's user avatar
  • 327
1 vote
0 answers
1k views

IIS 7.5 images not showing - 404

I have IIS 7.5 running my local dev site. My problem is the images are not displaying and in the browser console i receive a 404 error for them. I have checked the Handler Mappings and have '...
user667430's user avatar
1 vote
1 answer
487 views

Apache: Serve content from files that are restricted

In my Apache setup, I have a directory with my error pages in it (404 403). However, I don't want this directory being viewable directly - I'd like accessing it to return a 404. So what I did was this:...
joshlf's user avatar
  • 119
1 vote
0 answers
623 views

Simple php page gives 404 error in Magento

For testing purpose, I created a folder and created a test.php file in my magento site. It contains: <? echo "Hello"; ?> It works on one machine but not another machine. I chmod 777 to the ...
Sam Kong's user avatar
  • 933
1 vote
0 answers
950 views

Apache ProxyPass to Rack gives 404 error

(for simplicity I changed IPs of Apache server to 1.1.1.1 and Gollum server to 6.6.6.6) I'm trying to serve a Gollum wiki with rack through Apache (since it has SSL set up properly and I'm currently ...
Yuval's user avatar
  • 121
1 vote
1 answer
172 views

Can't setup nginx + php5-fpm in a fresh installation getting 404

I just've downloaded nginx 1.4 and right away I see the "Welcome to nginx!" message, then I've installed php5-fpm from the repositories so I create a php file at /usr/share/nginx/html/demo.php just ...
Novato's user avatar
  • 11
1 vote
0 answers
91 views

Azure Websites WAWS and several subdomains

I have a website mysite.azurewebsites.net and a domain mydomain.com Linking mydomain.com to the website succeded. I added a DNS entry A record and the awverify.mydomain.com CNAME to mysite....
oldbrazil's user avatar
  • 139
1 vote
1 answer
2k views

Nginx dynamic PHP 404 (with URL rewriting)

I'm trying to set-up dynamic 404 pages so that I can keep the URL of the missing content, show it on the 404 page and keep my site's template consistent. Here is my site conf: server { listen ...
grandcameo's user avatar
1 vote
0 answers
973 views

Lighttpd: Subdomains give an 404 Error

Since the last days, all my subdomains doesn't work anymore. I get only an 404 Error/Placeholder page. I have not make any changes on my Lighttpd.conf or on the 10-simple-vhost.conf. Does have anyone ...
hazelnut's user avatar
1 vote
1 answer
246 views

Why servers error log states lots of file doesn't exist, but files are accessible and website works well

we migrated our website onto VPS server (CentOS 5.6 + Plesk 9.5), everything works nice, but one strange thing that i noticed in Plesk, is error_log file, most of the time it filled up with hundreds ...
Tim's user avatar
  • 11
1 vote
2 answers
789 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: ## # Host Database # # localhost is used to ...
user avatar
1 vote
1 answer
739 views

Intermittent 404 errors on IIS6, serving classic ASP content

We have 2 IIS6 web servers running in a cluster. Intermittently we receive a 404 / 500 error, if it's a 500 error i get an email with the line number, i check that line in the asp file and it's ...
dylan's user avatar
  • 21
1 vote
1 answer
1k 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 ...
Lizardx's user avatar
  • 210
0 votes
0 answers
48 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
0 answers
358 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
  • 3
0 votes
1 answer
116 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
59 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
  • 111
0 votes
0 answers
234 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
0 votes
0 answers
196 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
  • 19
0 votes
0 answers
138 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
0 answers
265 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
0 votes
0 answers
278 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