# Root directory root /var/www/thinhnam.net/html; index index.html index.php;
server listen 80; listen [::]:80; server_name thinhnam.net www.thinhnam.net; return 301 https://$server_name$request_uri; Thinhnam.net Configuration
ln -s /etc/nginx/sites-available/thinhnam.net /etc/nginx/sites-enabled/ nginx -t && systemctl reload nginx Create /etc/apache2/sites-available/thinhnam.net.conf # Root directory root /var/www/thinhnam
sudo apt install postfix dovecot-core dovecot-imapd dovecot-pop3d # Root directory root /var/www/thinhnam.net/html
You can adapt the specific code blocks based on your hosting environment. 1. Overview Domain: thinhnam.net Purpose: This document provides standard configurations for DNS, web server (Apache/Nginx), SSL/TLS security, email, and performance tuning. 2. DNS Configuration (Essential First Step) Configure your domain’s DNS records at your registrar or DNS hosting provider.
SSLEngine on SSLCertificateFile /etc/ssl/certs/thinhnam.net/fullchain.pem SSLCertificateKeyFile /etc/ssl/private/thinhnam.net/privkey.pem
# Deny hidden files location ~ /\. deny all;