Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-10-2009, 02:30 PM   #1
Registered: Jul 2009
Posts: 619

Rep: Reputation: 42
nginx redirect error page


I recently changed from apache to nginx to server my users files.I would like to redirect server error pages to the static page /50x.html.I read up on google and searched everywhere and found different ways of doing it but none works for me.Can anyone help?Below is my code in nginx.conf.

#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
error_page 500 502 503 504 /50x.html;
location = /usr/local/nginx/html/50x.html {
root html;
Thank you


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid Redirect to welcome page on first internet access omid1979 Linux - Networking 3 10-15-2009 03:48 AM
Apache redirect for non existing page cooljai Linux - Server 1 11-03-2008 10:00 AM
Redirect page koscek Programming 9 11-02-2007 04:29 AM
Apache default page redirect Harry Seldon Linux - Enterprise 7 05-12-2006 09:50 AM
how to redirect PHP code to another page bahadur Programming 3 03-21-2005 06:59 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration