[Auto-Sync] Atualização das configurações em srvproxy001.itguys.com.br - 2025-09-17 10:46:54
This commit is contained in:
parent
8105cf4061
commit
60a18faa53
|
|
@ -19,7 +19,7 @@ server {
|
||||||
|
|
||||||
# Redireciona todo o outro tráfego para a URL final e correta.
|
# Redireciona todo o outro tráfego para a URL final e correta.
|
||||||
location / {
|
location / {
|
||||||
return 301 https://itguys.com.br$request_uri;
|
return 301 https://www.itguys.com.br$request_uri;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -29,15 +29,15 @@ server {
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
# Apanha APENAS o domínio com 'www'.
|
# Apanha APENAS o domínio sem 'www'.
|
||||||
server_name www.itguys.com.br;
|
server_name itguys.com.br;
|
||||||
|
|
||||||
# Usa o mesmo certificado, pois ele é válido para ambos os nomes.
|
# Usa o mesmo certificado, pois ele é válido para ambos os nomes.
|
||||||
ssl_certificate /etc/letsencrypt/live/www.itguys.com.br/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/www.itguys.com.br/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/www.itguys.com.br/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/www.itguys.com.br/privkey.pem;
|
||||||
ssl_trusted_certificate /etc/letsencrypt/live/www.itguys.com.br/fullchain.pem;
|
ssl_trusted_certificate /etc/letsencrypt/live/www.itguys.com.br/fullchain.pem;
|
||||||
# Envia um redirecionamento permanente para a versão canónica com 'www'.
|
# Envia um redirecionamento permanente para a versão canónica com 'www'.
|
||||||
return 301 https://itguys.com.br$request_uri;
|
return 301 https://www.itguys.com.br$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
@ -46,8 +46,8 @@ server {
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
# Apanha APENAS o domínio canónico sem 'www'.
|
# Apanha APENAS o domínio canónico com 'www'.
|
||||||
server_name itguys.com.br;
|
server_name www.itguys.com.br;
|
||||||
|
|
||||||
# --- Certificados e Segurança ---
|
# --- Certificados e Segurança ---
|
||||||
ssl_certificate /etc/letsencrypt/live/www.itguys.com.br/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/www.itguys.com.br/fullchain.pem;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue