0
votes
1answer
11 views

kohana 3.1 in subdirectory + ubuntu 14.04 + php-fpm + nginx 404 errors

i have an old kohana app that i'm trying to put on my VPS but can't seem to get it working. i've spent hours googling and looking at cached forum answers. i have tried them all and nothing seems to ...
0
votes
1answer
36 views

Laravel 4.1 on nginx routes error 404

I am having troubles with the routes of laravel on a nginx Server. It shows a "404 not found" for all the routes, except for the default one, very similar to this problem: ...
1
vote
1answer
82 views

Location directive not working

For my NGINX server I have a virtual server set up just to dish out static content. At the moment I'm trying to set it up so that images have an expiry date. However, when I create a location ...
1
vote
1answer
204 views

Nginx: How to set expiration for 404 responses?

My nginx server acts as a proxy for another server, which sometimes returns 404s. I want the 404 responses to be cacheable, just like 200 responses. However, I cannot use expires, because the ...
0
votes
2answers
810 views

real solution for `No input file specified.` (nginx, fpm)

Most answers to this question are, *set fastcgi_param SCRIPT_FILENAME and it will work* (italic formatting is broken?!). I have set this variable (correct) but it still shows the error instead of a ...
0
votes
1answer
63 views

Why do I have requests to “/usr/share/nginx/www404”?

I have requests to /usr/share/nginx/www404 in my NGINX logs. Note that www and 404 are mashed together. The according line in my nginx.conf is error_page 404 /404.html; and there's a 404.html in ...
1
vote
1answer
474 views

Intercepting 404 with nginx as reverse proxy for memcached + node.js

I'm using nginx as a reverse proxy to look up html content from memcached, if not present, then node.js, if not even there, node.js returns 404. What I'm trying to do is intercept and deliver a custom ...
0
votes
1answer
179 views

'File not found' exact path in nginx and php-fpm

Sometimes when configuring nginx and php-fpm I get message "File not found." I know this is beacause of wrong parameter SCRIPT_FILENAME, e.g.: fastcgi_param SCRIPT_FILENAME ...
2
votes
1answer
86 views

Why do I get a 404 for my index.page in my http/https nginx setup?

I'm using WPN-XM (stack with Nginx, MariaDB, PHP and OPENSSL) and am trying to setup OpenSSL in a HTTP/HTTPS server. I'm following the instructions from NGINX here and my server starts/stops without ...
1
vote
1answer
86 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 ...
0
votes
0answers
25 views

NGINX Custom ErrorPages wont work

My Server doesn't want to display a custom 500 error page. The error page for the 500 error is here: https://aixspace.de/errorpages/500-504/500.html these are my vhost configs: server { listen ...
1
vote
1answer
63 views

Why is Nginx serving `index.html` instead of a 404?

I have a site where requesting a particular JSON file and finding it missing triggers a request for a fallback JSON file. However, rather than getting a 404 for the first file, I was getting the ...
1
vote
1answer
304 views

Nginx 404 error page php with params

In Opencart, 404 error is shown in this url: /index.php?route=error/not_found This page has a 404 custom page with the template of all the website. I´ve tried in Nginx with: error_page 404 = ...
0
votes
2answers
207 views

nginx serving alternate location on 404

I'm trying to set up an nginx config as follows: When receiving a request like /tile/SteveCountryVic/1/2/3.png: Attempt to pass it through to http://localhost:5005/1/2/3.png If that 404s, pass it to ...
0
votes
2answers
144 views

Nginx returning 404 with Python-urllib but fine if accessed from browser

We have a repo server running on a Windows box serving some static files that are supposed to be grabbed by our worker nodes using Python-urllib. The problem lies in the fact that when we make a ...
0
votes
1answer
102 views

install nginx on centos 6 but folders isnot working give me 404 not found

I've install Nginx on CentOS 6 without control panel following these steps. I got Nginx installed successfully, see this link. But I still have a folder that isn't showing and giving me "not found ...
0
votes
0answers
1k views

Nginx, Django, uwsgi upstream prematurely closed connection

I have a django app running on Nginx and uwsgi. The app works fine usually, but I have noticed one thing that is whenever I restart my server and try to work on my app I am getting Nginx 404 error and ...
0
votes
2answers
1k views

nginx display a not found image

I have a lot of hotlinked images. Which is fine but some do not exist anymore due to change in URL. Is it possible to display something like imageshack "image not found error" picture only when images ...
0
votes
1answer
340 views

Nginx + Unicorn Rails Application gets 404 when requests number are high

I have a Rails application deployed using Nginx + Unicorn. Last night, when the traffic peaked, Nginx was getting lots of 404 errors. When I dig into logs, those 404 requests on the nginx side did not ...
0
votes
1answer
148 views

nginx alias using php5-fpm response 404

I use php5 fpm using nginx. but i have a problem. # debug alias location /bb/ { alias /usr/share/blahblah/; } file on http://mysite.localhost/bb/index.php was not found. but it's still on ...
0
votes
1answer
80 views

500 error on 404 request

I am having a problem where my site's 404 request are ending up as 500 errors on the server. When I use wget to retrieve the site, I get this Resolving gx5.co.uk... 127.0.0.1, 87.106.9.224 ...
0
votes
1answer
451 views

nginx proxy_pass POST 404 errors

I have nginx proxying to an app server, with the following configuration: location /app/ { # send to app server without the /app qualifier rewrite /app/(.*)$ /$1 break; ...
0
votes
2answers
694 views

Nginx + PHP-FPM executes script, but returns 404 [closed]

I am using Nginx + PHP-FPM to run a Wordpress based site. I have a URL that should return dynamically generated JSON data for use with the DataTables jQuery plugin. The data is returned properly, but ...
0
votes
1answer
332 views

Nginx .zip files return 404

I have set up Nginx as a reverse proxy for Node and to serve my static files and user uploaded images. Everything is working beautifully except that I can't understand why Nginx can't find my .zip ...
0
votes
1answer
140 views

How to redirect a 404 to https in nginx?

For some reason a Redmine installation keeps redirecting some https requests to http. I'd like to change 404 response for the vhost the pages are redirected to back to the https it should have gone ...
-1
votes
1answer
46 views

nginx 404 logs to all virtualhosting logs

I am using nginx and i have two sites running: site1 = /1/access.log site2 = /2/access.log when a user get 404 images not found on site2 nginx writes to access.log of site1 & site2 reporting the ...
0
votes
1answer
88 views

Use shared 404 page for virtual hosts in Nginx

I'd like to have a shared 404 page to use across my virtual hosts. The following is my setup. Two sites, each with their own config file in /sites-available/ and /sites-enabled/ www.foo.com ...
0
votes
1answer
413 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 ...
1
vote
3answers
522 views

Nginx 404 page behavior

I have the following nginx server config: server { listen 80; server_name example.com root /server/root; index index.php; error_page 404 = /index.php; location ~ \.php$ { ...
0
votes
2answers
201 views

How to reverse this Nginx rewrite rule?

I've been having trouble getting Nginx rewrites to work. On Apache I had the following rewrite, which directed all requests that did not request a PHP file to index.php: Options +FollowSymLinks ...
1
vote
1answer
1k views

Nginx returning “404 Not Found” when invoking the upload module

I've set up Nginx and the upload module following Martin Fjordvald's guide, but whenever I submit a file to it, I receive Nginx's generic "404 Not Found" page. The file is not uploaded. Here's my ...
0
votes
1answer
7k views

How to fix “404 not found” error on nginx configuration

I just installed nginx on debian, and do basic configuration(add server part) in nginx.conf file user www-data; worker_processes 1; error_log /var/log/nginx/error.log; pid ...
1
vote
1answer
174 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 ...
0
votes
2answers
523 views

ubuntu server 10.04 nginx 404 errors

What I am trying to do is setup a web server for development running in VMware with the IP address of 192.168.190.128. Nginx is installed and running and I get the "welcome to nginx" page. However ...
2
votes
1answer
292 views

Nginx cant serve files with special symbols in them?

So in browser i request a file that i know it exists 3a1c2aa4d488ae4d?s=40?f=78 but it gives me a 404 error and in log says that it couldn't find file named 3a1c2aa4d488ae4d. For some reason it ...
0
votes
2answers
931 views

nginx phpmyadmin 404

I am trying to install phpmyadmin on my nginx web server. I installed phpmyadmin without a problem. I created subdomain for it. For security reasons I didnt call my subdomain "phpmyadmin" i used a ...
2
votes
1answer
467 views

Caching 404s - NGINX or Varnished?

I'm looking for a solution to cache 404s in long term (a few days/weeks) on the webserver. My current setup is NGINX with memcached_pass proxy and PHP-FPM to deliver uncached pages (PHP also writes ...
2
votes
1answer
670 views

Weird 404 issue with nginx 's.png'

This URL is invalid: http://mysite.co.uk/assets/images/whymysite/viewoptions.png However, if I replace the 's' at the end before .png, with ANY other standard character (that I've tried so far, it ...
1
vote
1answer
2k views

404 .php page response nginx + php fpm

I just made a fresh install of a server with nginx with php5-fpm. Why if you visit a php page that doesn't exist you get a blank page instead of the default "not found" page of nginx? Shouldn't this ...
2
votes
1answer
811 views

nginx PHP files 404

I am getting 404 not found on php files with my nginx/php-fastcgi install. I have tried several variations of declaring root in different places but cant find one that works, and I suspect this is ...
1
vote
1answer
979 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 ...
0
votes
2answers
2k views

NGINX returning 404 error on a valid url

We have a site that runs PHP-FPM and NGINX. The application sends invitations to site members that are keyed with 40 character random strings (alphanumerics only -- example below). Today for the ...
1
vote
1answer
2k views

Nginx Reverse Proxy returning 404

I'm using Nginx as a caching proxy for ArchLinux mirrors (to speed up internal server builds). It correctly reverse proxies four sites, but returns mysterious 404s on the fifth. ...
1
vote
1answer
766 views

Conditionally serve 404 file based on request url file extension in Nginx?

I would like to know if I can conditionally serve a specific file as a 404 page based on the request url, or the content-type/mime-type requested. I'm guess something along the lines of: if ...