Skip to main content

Personalizar Erro 404 servidor

Comments

6 comments

  • Samet Chan
    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
  • cPanelMichael
    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
  • LeonardoIPX
    Okay, but if I insert an html code with a link from my site, can this lead to some security flaw?
    0
  • cPanelMichael
    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
  • LeonardoIPX

    Error 404

    Ops, voc" encontrou nossa p"gina 404

    Isto n"o " uma falha, apenas um acidente que n"o foi intencional. No entanto, duvidamos que esta seja a p"gina que voc" est" procurando e pedimos desculpas por isso.

    Hospedado por Teste / Teste2


    0
  • cPanelMichael
    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.