Custom Error Pages/Static Pages
#1
Custom Error Pages/Static Pages
The static pages to customize are in : /sentora/panel/etc/static/ OR /zpanel/panel/etc/static/ depending on your installation.

The error pages will be copied to your client's hosting space when a new account is created.

There are a few other pages also: Parked Domains, Bandwidth Exceeded, Storage Space Exceeded, etc.

After customizing them, I suggest backing them up to another folder so that when you do an upgrade in the future you can just replace them instead of having to remake them all over again
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#2
RE: [HOW-TO] Custom Error Pages/Static Pages
thanks ^_^
Reply
#3
RE: [HOW-TO] Custom Error Pages/Static Pages
may i ask is that include the
index.html aslo.
Reply
#4
RE: [HOW-TO] Custom Error Pages/Static Pages
(11-20-2015, 02:21 AM)bioenergy Wrote: may i ask is that include the
index.html aslo.

Yes
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#5
RE: [HOW-TO] Custom Error Pages/Static Pages
may i ask where should i edit the index.html
-
error pages  is in
/etc/sentora/panel/etc/static/errorpages
-
how about the index.html



Attached Files Thumbnail(s)
   
Reply
#6
RE: [HOW-TO] Custom Error Pages/Static Pages
Did you view any of the files in the static folder? They are pretty much self explanatory.

http://docs.sentora.org/?node=97

To answer your question: /etc/sentora/panel/etc/static/pages/welcome.html
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#7
RE: [HOW-TO] Custom Error Pages/Static Pages
(11-21-2015, 04:37 AM)TGates Wrote: Did you view any of the files in the static folder? They are pretty much self explanatory.

http://docs.sentora.org/?node=97

To answer your question: /etc/sentora/panel/etc/static/pages/welcome.html

Hi,

Have another question linked to the error pages.

I have two websites hosted on a digital ocean droplet in a subdomain folder.

From one of the websites subdomain, I removed the _errorpages folder in past.

Now I have reinstated the folder along with the html files for each error page, however when I try to test a 404 error it does not land on the custom html page I created, it lands on a page which says 

---------------------------
Not Found
The requested URL /sdasd was not found on this server.

Apache Server at subdomain.domain.com Port 443

--------------------

How can I force the server to pick the relevant error document from _errorpages folder.

Please note, it works perfectly fine on the other website, where the _errorpages folder was always there.

Should I restart my apache server or something? Greatly appreciate your suggestion.

Regards,
Kumar
Reply
#8
RE: [HOW-TO] Custom Error Pages/Static Pages
In .htaccess you can set:

ErrorDocument 404 /new404.html

https://www.digitalocean.com/community/t...-in-apache

I think you lost error document defaults when you setup the SSL as this is related to SSL domain.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
#9
RE: [HOW-TO] Custom Error Pages/Static Pages
Awesome! Thanks, it helped!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)