0.7.61: error_page 404 woes
Toni Mueller
support-nginx at oeko.net
Mon Jul 13 21:04:09 MSD 2009
Hi,
I'm having a problem with the error_page directive.
What I want is to redirect people who try to access a nonexistent page
to the home page of the site. Following
http://wiki.nginx.org/NginxHttpCoreModule#error_page , I configured
error_page 404 /;
But this statement had no effect. I had to re-write the statement as
error_page 404 http://$server_name/;
to get the desired effect, but don't quite understand, why.
TIA!
Kind regards,
--Toni++
More information about the nginx
mailing list