Page 1 of 1

document_errors don't work

Posted: Wed Feb 22, 2017 7:23 pm
by userman
Hi,

when I access to http://www.domain.com/page-error.php
I get the error:
Not Found
The requested URL /my_error.php was not found on this server.

and this is not my template page error of /home/username/web/domainname.com/document_errors or /usr/local/vesta/data/templates/web/skel/document_errors
where is the page error then?

My config domain in vestacp:
Web Template HTTPD: default
Proxy Support NGINX: Active
Proxy Template: default
Web Statistics: none

Thanks.

Re: document_errors don't work

Posted: Wed Feb 22, 2017 8:16 pm
by mehargags
when you get this message The requested URL /my_error.php was not found on this server, it is default Error 404 output of Apache. you need to tell in your virtual hosts or through htaccess which file to load when 404.

http://www.htmlgoodies.com/beyond/refer ... r-Page.htm

Re: document_errors don't work

Posted: Thu Feb 23, 2017 11:37 am
by userman
Thanks!!

the method .htaccess work, but why when i add a new domain to vestacp, the domain dont use /home/username/web/domainname.com/document_errors ?

Regards.