Welcome! Log In Create A New Profile

Advanced

Re: error directive help with 404

Maxim Dounin
May 30, 2010 06:00PM
Hello!

On Fri, May 28, 2010 at 06:23:13PM -0400, robinsonc494 wrote:

> Hi all,
> I've just moved from an apache2 server and i'm trying to set up nginx.
>
> Its installed, compiled from source and running fine.
> In the process of fine tuning my setup i noticed my 404's aren't doing what i want.
>
> I have my wordpress blog setup with php-fpm for php
>
> when a 404 happens on a file with .html or /no-existent-url
> the 404 does what i expect and wordpress handles it with my custom page.
>
> if i enter domain.com/somepage.php i get the nasty default page that browsers server.
> in I.E especially

So you have 404 returned from php, and it's returned to browser as
is. Use fastcgi_intercept_errors to intercept backend errors, see
here:

http://wiki.nginx.org/NginxHttpFcgiModule#fastcgi_intercept_errors

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

error directive help with 404

robinsonc494 May 28, 2010 06:23PM

Re: error directive help with 404

Maxim Dounin May 30, 2010 06:00PM

Re: error directive help with 404

robinsonc494 May 31, 2010 06:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 323
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready