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

Notices


Reply
  Search this Thread
Old 10-10-2009, 01:30 PM   #1
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
nginx redirect error page


Hello,

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
 
  


Reply


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 02:48 AM
Apache redirect for non existing page cooljai Linux - Server 1 11-03-2008 09:00 AM
Redirect page koscek Programming 9 11-02-2007 03:29 AM
Apache default page redirect Harry Seldon Linux - Enterprise 7 05-12-2006 08:50 AM
how to redirect PHP code to another page bahadur Programming 3 03-21-2005 05:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:04 PM.

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