Configurar HSTS no Servidor

Avançado Certificado SSL

Configura HSTS (HTTP Strict Transport Security) para forçar HTTPS permanentemente.

O que é
apache — configura hsts (http strict transport security) para forçar https permanentement...
Comando
apache
Categoria
Certificado SSL
Nível
Avançado
📌 Comando: apache
📁 Categoria: Certificado SSL
👁 Visualizações: 22

Sintaxe

Sintaxe
bash
nano /etc/httpd/conf.d/ssl.conf

Exemplos de Uso

Apache
$ <IfModule mod_headers.c> Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" </IfModule>
Nginx
$ add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
Verificar HSTS
$ curl -I https://meusite.com | grep -i strict
https://hstspreload.org
$

Atenção

⚠️
HSTS com preload é difícil de reverter. Só ative após ter HTTPS 100% funcional.

Guia Rápido: apache

O que é

apache é um comando Linux usado para configura hsts (http strict transport security) para forçar https permanentemente..

Para que serve

Configura HSTS (HTTP Strict Transport Security) para forçar HTTPS permanentemente.

Quando usar

Use apache em tarefas de certificado ssl, especialmente em servidores Linux, cPanel, WHM e VPS.

Quando ter cuidado

HSTS com preload é difícil de reverter. Só ative após ter HTTPS 100% funcional....

🖥️
Precisa de um VPS com cPanel?
HostSSD oferece VPS NVMe com cPanel/WHM incluído e migração gratuita.
Ver Planos
Copiado!