# 404 Not Found -- nginx/1.0.10

**URL:** <https://www.ruby-forum.com/t/404-not-found-nginx-1-0-10/214401>\
**Category:** NGINX\
**Created:** [December 1, 2011, 5:26am UTC](https://www.ruby-forum.com/t/404-not-found-nginx-1-0-10/214401 "2011-12-01T05:26:42Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [December 1, 2011, 5:26am UTC](https://www.ruby-forum.com/t/404-not-found-nginx-1-0-10/214401/1 "2011-12-01T05:26:42Z")

</div>

Hello

First of all thank you for this forum which I have just joined.

I have set up nginx and have it working very well for the past month or  
so. However I have faced this problem for the second time now. The  
last time it happened I had to power down and re-start the machine and  
it was ok.

I am running Nginx and PHP-FastCGI connecting to Oracle 10g on Ubuntu  
Lucid Lynx (10.04 LTS) installed on VirtualBox 4.1.6. It works well and  
like it better than Apache. Except for the two times that it has died  
on me, I have had no issues. And I think that happened (not sure), when  
I made a mistake in PHP and tried to browse it. I make tons of mistakes  
and it is ok all the time – except of course for these two  
comparatively rare occurences.

The error takes the form of a blank white screen with ‘404 Not Found’ in  
bold across the top. Then there is a dividing line running from left to  
right and just below that in small font ‘nginx/1.0.10’.

Restarting Nginx does not help. Nor does replacing the index.php page  
with a simple call.

Any idea what this is or what I maybe doing wrong?

Thank you very much!

Posted at Nginx Forum:

> **[404 Not Found -- nginx/1.0.10](https://forum.nginx.org/read.php?2,219405,219405#msg-219405)**
>
> Hello First of all thank you for this forum which I have just joined. I have set up nginx and have it working very well for the past month or so. However I have faced this problem for the second time now. The last time it happened I had to power down...

---

<div class="post-metadata">

**Author:** ![mfouwaaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9a140/32.png) [@mfouwaaz](https://www.ruby-forum.com/u/mfouwaaz)\
**Post date:** [December 3, 2011, 2:59am UTC](https://www.ruby-forum.com/t/404-not-found-nginx-1-0-10/214401/2 "2011-12-03T02:59:35Z")

</div>

… and it happened again. Any clues please? I am very new to Nginx.  
Thanks!

Posted at Nginx Forum:

> **[Re: 404 Not Found -- nginx/1.0.10](https://forum.nginx.org/read.php?2,219405,219522#msg-219522)**
>
> Hello First of all thank you for this forum which I have just joined. I have set up nginx and have it working very well for the past month or so. However I have faced this problem for the second time now. The last time it happened I had to power down...

---

<div class="post-metadata">

**Author:** ![mfouwaaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9a140/32.png) [@mfouwaaz](https://www.ruby-forum.com/u/mfouwaaz)\
**Post date:** [December 3, 2011, 3:11pm UTC](https://www.ruby-forum.com/t/404-not-found-nginx-1-0-10/214401/3 "2011-12-03T15:11:48Z")

</div>

On Saturday 03 December 2011 05:58:54 mfouwaaz wrote:

> … and it happened again. Any clues please? I am very new to Nginx.  
> Thanks!

You didn’t provide any useful debug and configuration information, so  
how we can help you?

Please, show your nginx config and make a debug log of your problem:

> **[A debugging log](http://nginx.org/en/docs/debugging_log.html)**

As for now, I can make an assumption, that your problem related to a  
bug in VirtualBox:

- [nginx serving old version of CSS file - SOLVED(ish)](http://mailman.nginx.org/pipermail/nginx/2011-November/030469.html)
- [GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com · GitHub](http://wiki.nginx.org/Pitfalls#Config_Changes_Not_Reflected)

wbr, Valentin V. Bartenev

---

<div class="post-metadata">

**Author:** ![mfouwaaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9a140/32.png) [@mfouwaaz](https://www.ruby-forum.com/u/mfouwaaz)\
**Post date:** [December 4, 2011, 6:00pm UTC](https://www.ruby-forum.com/t/404-not-found-nginx-1-0-10/214401/4 "2011-12-04T18:00:59Z")

</div>

Hi Valentin

Thanks for getting back to me. Can you kindly spell out exactly what  
you are expecting and where I can find it?

Thanks!

Posted at Nginx Forum:

> **[Re: 404 Not Found -- nginx/1.0.10](https://forum.nginx.org/read.php?2,219405,219587#msg-219587)**
>
> Hello First of all thank you for this forum which I have just joined. I have set up nginx and have it working very well for the past month or so. However I have faced this problem for the second time now. The last time it happened I had to power down...

---

<div class="post-metadata">

**Author:** ![mfouwaaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9a140/32.png) [@mfouwaaz](https://www.ruby-forum.com/u/mfouwaaz)\
**Post date:** [December 5, 2011, 10:19am UTC](https://www.ruby-forum.com/t/404-not-found-nginx-1-0-10/214401/5 "2011-12-05T10:19:20Z")

</div>

On Sunday 04 December 2011 21:03:36 mfouwaaz wrote:

> I should have mentioned that I cannot replicate this error at will – it  
> happens only very rarely. I will also set up a separate instance with  
> the debug config as shown in the link – but I’d like to know what you  
> would like to see.

Can you clarify some details about where files are stored that nginx  
serves?  
On your local machine or in the VirtualBox instance? How nginx has  
accessed  
to these files? Through VirtualBox shared folders?

When 404 happens again with debug log enabled, probably, we will see  
some  
useful information in the error log, but I expect that the problem is  
just  
kinda buggy VirtualBox network stack.

wbr, Valentin V. Bartenev

---

<div class="post-metadata">

**Author:** ![mfouwaaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9a140/32.png) [@mfouwaaz](https://www.ruby-forum.com/u/mfouwaaz)\
**Post date:** [December 5, 2011, 7:58pm UTC](https://www.ruby-forum.com/t/404-not-found-nginx-1-0-10/214401/6 "2011-12-05T19:58:07Z")

</div>

Thanks very much Valentin. I will enable debug information and write  
with more details, when it happens again.

The whole thing is in the VirtualBox machine, there is nothing in the  
host machine. I have enabled ‘Bridging’ in the VirtualBox machine  
though, so that I can browse the domain (in the virtual machine) from  
the host.

Thanks again for being so patient. I am kind of new to Nginx and could  
get all the help I can get.

Have a great day and also a wonderful holiday season!

Fouwaaz

Posted at Nginx Forum:

> **[Re: 404 Not Found -- nginx/1.0.10](https://forum.nginx.org/read.php?2,219405,219644#msg-219644)**
>
> Hello First of all thank you for this forum which I have just joined. I have set up nginx and have it working very well for the past month or so. However I have faced this problem for the second time now. The last time it happened I had to power down...

---

<div class="post-metadata">

**Author:** ![mfouwaaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9a140/32.png) [@mfouwaaz](https://www.ruby-forum.com/u/mfouwaaz)\
**Post date:** [July 6, 2012, 5:08am UTC](https://www.ruby-forum.com/t/404-not-found-nginx-1-0-10/214401/7 "2012-07-06T05:08:41Z")

</div>

Hi,

I’m just wondering what your solution to this problem was? I’m  
struggling here myself.

Many thanks!

Posted at Nginx Forum:

> **[Re: 404 Not Found -- nginx/1.0.10](https://forum.nginx.org/read.php?2,219405,228316#msg-228316)**
>
> Hello First of all thank you for this forum which I have just joined. I have set up nginx and have it working very well for the past month or so. However I have faced this problem for the second time now. The last time it happened I had to power down...

---

<div class="post-metadata">

**Author:** ![mfouwaaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9a140/32.png) [@mfouwaaz](https://www.ruby-forum.com/u/mfouwaaz)\
**Post date:** [July 6, 2012, 6:23pm UTC](https://www.ruby-forum.com/t/404-not-found-nginx-1-0-10/214401/8 "2012-07-06T18:23:19Z")

</div>

Virtual machines and nginx do work but you need to carefully look at the  
network card you’re using, the intel ones are the best.

Posted at Nginx Forum:

> **[Re: 404 Not Found -- nginx/1.0.10](https://forum.nginx.org/read.php?2,219405,228338#msg-228338)**
>
> Hello First of all thank you for this forum which I have just joined. I have set up nginx and have it working very well for the past month or so. However I have faced this problem for the second time now. The last time it happened I had to power down...

---

<div class="post-metadata">

**Author:** ![mfouwaaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9a140/32.png) [@mfouwaaz](https://www.ruby-forum.com/u/mfouwaaz)\
**Post date:** [December 4, 2011, 6:04pm UTC](https://www.ruby-forum.com/t/404-not-found-nginx-1-0-10/214401/9 "2011-12-04T18:04:05Z")

</div>

I should have mentioned that I cannot replicate this error at will – it  
happens only very rarely. I will also set up a separate instance with  
the debug config as shown in the link – but I’d like to know what you  
would like to see.

Thanks

Posted at Nginx Forum:

> **[Re: 404 Not Found -- nginx/1.0.10](https://forum.nginx.org/read.php?2,219405,219588#msg-219588)**
>
> Hello First of all thank you for this forum which I have just joined. I have set up nginx and have it working very well for the past month or so. However I have faced this problem for the second time now. The last time it happened I had to power down...

---

<div class="post-metadata">

**Author:** ![mfouwaaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9a140/32.png) [@mfouwaaz](https://www.ruby-forum.com/u/mfouwaaz)\
**Post date:** [July 7, 2012, 12:29pm UTC](https://www.ruby-forum.com/t/404-not-found-nginx-1-0-10/214401/10 "2012-07-07T12:29:27Z")

</div>

I’ve had the same sort of issue yesterday with 1.2.2, all of a sudden  
404’s but with a additional ‘No input file specified’ coming from the  
php backend(and 1 sec later from nginx cache ‘HIT’), one minute later  
and everything was normal again. No floods, normal traffic, no  
additional log entries… Only backend effected, normal static sites  
worked ok.

Restarts did not help either which is the weirdest, but then again I did  
change alot recently like using nginx caching with the php backend, php  
code RC cacher. And I did wanted to update php anyway to the 5.4 branch,  
so now updated everything to 5.4, changed a dozen php apps to work  
properly with 5.4 and now waiting to see if the issue happens again.

There are memory corruption issues with php 5.3 which have been fixed in  
svn but not compiled/released yet, 5.4 does not have these issues so  
hopefully 5.4 solves this weirdness.

It does sound like a php issue (75% sure) but it could be a nginx issue  
as well like for some reason not passing data to the backend, however it  
is extremely weird when restarting nginx and the backends the problem  
persisted ! either wait without restarting or restart 3-4 times before  
things are back to normal.

Posted at Nginx Forum:

> **[Re: 404 Not Found -- nginx/1.0.10](https://forum.nginx.org/read.php?2,219405,228355#msg-228355)**
>
> Hello First of all thank you for this forum which I have just joined. I have set up nginx and have it working very well for the past month or so. However I have faced this problem for the second time now. The last time it happened I had to power down...

---

<div class="post-metadata">

**Author:** ![mfouwaaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9a140/32.png) [@mfouwaaz](https://www.ruby-forum.com/u/mfouwaaz)\
**Post date:** [July 6, 2012, 7:40pm UTC](https://www.ruby-forum.com/t/404-not-found-nginx-1-0-10/214401/11 "2012-07-06T19:40:31Z")

</div>

Thanks itpp2012. But I’m running nginx on a standalone server with  
php-fpm and am having exactly the same problem: random 404s after a  
period of everything working, which only a restart can resolve. I’m  
pulling my hair out trying to figure this out, and am so close to using  
apache instead.

Posted at Nginx Forum:

> **[Re: 404 Not Found -- nginx/1.0.10](https://forum.nginx.org/read.php?2,219405,228341#msg-228341)**
>
> Hello First of all thank you for this forum which I have just joined. I have set up nginx and have it working very well for the past month or so. However I have faced this problem for the second time now. The last time it happened I had to power down...
