Personalizar Erro 404 servidor
Ol",
Preciso customizar minha pagina de erro 404 para todos os clientes do meu servidor.
Verifiquei que " poss"vel realizar o procedimento abaixo:
1. Comentar a linha no arquivo /etc/apache2/conf.d/includes/errordocument.conf:
# 404 - Not Found
# ErrorDocument 404 /404.shtml
2. Editar o arquivo /var/www/html/404.shtml com o codigo HTML com meu erro 404 personalizado com um link da minha hospedagem.
3. Dar um restart no apache para puxar as configura""es.
Mas fui questionado que este procedimento poderia gerar uma falha de seguran"a, algo sobre o modulo > "Symlink Race Condition Protection"
Poderiam me informar se realmente isso ir" gerar uma falha de seguran"a, caso sim, como posso consertar esta falha?
Ou se a outra forma de configurar um erro 404 para todos os meus clientes j" ativo e ainda permitir que eles possam ter seus pr"prios customizado pelo cPanel.
Fico no aguardo, e agrade"o desde j" :)
-
Hi, I quoted your Spanish to English translation here, [QUOTE="Custom Error 404 Server - English"> Hello, I need to customize my 404 error page for all clients on my server. I checked that it is possible to perform the following procedure: 1. Comment the line in the /etc/apache2/conf.d/includes/errordocument.conf file: # 404 - Not Found # ErrorDocument 404 /404.shtml 2. Edit the / var file /www/html/404.shtml with the HTML code with my custom 404 error with a link from my hosting. 3. Give a restart on apache to pull the settings. apache to pull the settings. But I was asked that this procedure could generate a security fault, something about the module> "Symlink Race Condition Protection" Could you let me know if this will actually cause a security breach, if so, how can I fix this fault? Or if the other way to set up a 404 error for all my already active clients and still allow them to have their own customized by cPanel. I'm waiting, and thank you in advance:)
Visit ErrorDocument more there, 1.0 -
Hello, You could manually edit /var/www/html/404.shtml without making any changes to /etc/apache2/conf.d/includes/errordocument.conf if you wanted a custom default 404 error page. This would allow users to still setup custom error pages in cPanel for their own account. You can read more about protection against symlink race conditions at: Symlink Race Condition Protection - EasyApache 4 - cPanel Documentation Thank you. Translation: Ol", Voc" pode editar manualmente /var/www/html/404.shtml sem fazer altera""es em /etc/apache2/conf.d/includes/errordocument.conf se voc" quisesse uma p"gina de erro personalizada 404 padr"o. Isso permitiria aos usu"rios ainda configurar p"ginas de erro personalizadas no cPanel para sua pr"pria conta. Voc" pode ler mais sobre prote""o contra condi""es de corrida do link simb"lico em: Symlink Race Condition Protection - EasyApache 4 - cPanel Documentation Obrigado. 0 -
Okay, but if I insert an html code with a link from my site, can this lead to some security flaw? 0 -
New Okay, but if I insert an html code with a link from my site, can this lead to some security flaw?
Could you provide a specific example of the type of code you are using? Thank you.0 -
Hello, The risk with that type of file is that if "domain.tld/sites" were to become compromised, then it could affect any website on the server using those custom error pages. Have you considered simply making a custom page without linking to a domain name? Thank you. 0
Please sign in to leave a comment.
Comments
6 comments