Questions tagged [http-status-code-404]
404 is the HTTP status code for "Not Found"
379
questions
0
votes
0
answers
13
views
NGINX Web server shows index.php but no other subcontents like admin panel
My website loads fine its index.php website
https://carpool.domain.com/
I enter user name and password, and gets redirected to url:
http://carpool.domain.com/admin_login
Nginx will fail showing this:
...
0
votes
2
answers
104
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 ...
0
votes
0
answers
101
views
Not found 404 with apache and bootstack
the last two day I was trying to run bookstack with an apache webserver, which is hosted localy on my system. I'am not familiar with apache and bookstack. So this was my first try to host a local ...
0
votes
0
answers
80
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 ...
0
votes
2
answers
59
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?
0
votes
0
answers
25
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 ...
0
votes
1
answer
62
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 ...
0
votes
0
answers
40
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/...
2
votes
1
answer
799
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 ...
1
vote
2
answers
45
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 ...
0
votes
0
answers
111
views
Erreur IIS 10.0 HTTP 404.0 - Not Found
https://i.stack.imgur.com/W5AU8.png
Hello I try to connect to the localhost of the phpadmin and its always giving me the same answer I put the photo on it, I do not see where its could come from ...
0
votes
0
answers
43
views
Test for no 404 error before enabling RedirectMatch?
I have a RedirectMatch to a remote server in my Apache httpd.conf file. However, sometimes the remote server gives a 404 HTTP response. Is there a way for the Apache server to ping the remote server ...
0
votes
0
answers
225
views
Nginx revere proxy Websocket error 404
i'm working with two Nginx one behind the each other.
Our Infraestructure it's like this
infraestructure
Problem
I've problems with websocket connections, when i send the request to Nginx Proxy pass ...
0
votes
0
answers
50
views
Throwing 404 errors AWS
What might be the possible reason why the 502s were being returned here?
The 403s also look like WAF is firing them. Could anyone please suggest a way to allow those resources to be safely given to ...
2
votes
2
answers
212
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, ...
1
vote
1
answer
973
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 ...
0
votes
0
answers
156
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;
...
-1
votes
1
answer
307
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. ...
0
votes
1
answer
312
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 ...
1
vote
1
answer
1k
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 ...
1
vote
1
answer
108
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 ...
0
votes
0
answers
35
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 ...
1
vote
1
answer
278
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 ...
0
votes
1
answer
81
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-...
0
votes
0
answers
196
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 ...
0
votes
1
answer
1k
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 ...
0
votes
1
answer
626
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 ...
0
votes
0
answers
165
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 ...
0
votes
0
answers
67
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://...
0
votes
1
answer
143
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. ...
0
votes
0
answers
206
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 ...
0
votes
1
answer
302
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
1
answer
330
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 ...
1
vote
0
answers
28
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 ...
-1
votes
3
answers
4k
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
1
answer
134
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
0
answers
795
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
1
answer
207
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
0
answers
155
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
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 ...
0
votes
1
answer
157
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 ...
3
votes
1
answer
3k
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
1
answer
56
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
1
answer
477
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
3
answers
797
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
0
answers
1k
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
1
answer
447
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
1
answer
415
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
1
answer
73
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
0
answers
182
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 ...