generate default under construction pages for existing accounts with no index files ?

goodytwoshoes

Verified User
Joined
Jul 12, 2019
Messages
10
Good day all.
We have customers who moved accounts to us from cpanel and seem unhappy with the 403 errors on pages where they have no content,
We did try to explain that it relates to indexing being denied while no index file exists but some customers don't appreciate this very much.
Is there any way to generate the default Direct Admin under construction page for those accounts that have no index content ?
(referring to the default page you get when you created a new account, but how to make this page for an existing account ?)
 
normally, directadmin will generate 404.shtml, 403.shtml ...etc.. for all new domain creating.
It can customize by just place file in "/home/{resellername}/domains/default/index.html".

if you like all domain have error page by default without generating "403.shtml"
you need to make custom nginx template

#/usr/local/directadmin/data/templates/custom/cust_nginx.CUSTOM4.pre
Code:
        error_page 403 /custom_403.html;
        location = /custom_403.html {
                root /var/www/html/custom_error/
                internal;
        }
note:: place your html page in "/var/www/html/custom_error/custom_403.html"

then rewrite_conf
Code:
da build rewrite_confs
 
Back
Top