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
<VirtualHost *:80> ServerName thinhnam.net ServerAlias www.thinhnam.net Redirect permanent / https://thinhnam.net/ </VirtualHost> <VirtualHost *:443> ServerName thinhnam.net ServerAlias www.thinhnam.net DocumentRoot /var/www/thinhnam.net/html
# Root directory root /var/www/thinhnam.net/html; index index.html index.php;
# Logs access_log /var/log/nginx/thinhnam.net_access.log; error_log /var/log/nginx/thinhnam.net_error.log;
location / try_files $uri $uri/ =404;
<Directory /var/www/thinhnam.net/html> Options -Indexes +FollowSymLinks AllowOverride All Require all granted </Directory>
ErrorLog $APACHE_LOG_DIR/thinhnam_error.log CustomLog $APACHE_LOG_DIR/thinhnam_access.log combined </VirtualHost> Obtain a free Let’s Encrypt certificate:
server listen 443 ssl http2; listen [::]:443 ssl http2; server_name thinhnam.net www.thinhnam.net;
Thinhnam.net Configuration Apr 2026
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
<VirtualHost *:80> ServerName thinhnam.net ServerAlias www.thinhnam.net Redirect permanent / https://thinhnam.net/ </VirtualHost> <VirtualHost *:443> ServerName thinhnam.net ServerAlias www.thinhnam.net DocumentRoot /var/www/thinhnam.net/html
# Root directory root /var/www/thinhnam.net/html; index index.html index.php; Thinhnam.net Configuration
# Logs access_log /var/log/nginx/thinhnam.net_access.log; error_log /var/log/nginx/thinhnam.net_error.log;
location / try_files $uri $uri/ =404;
<Directory /var/www/thinhnam.net/html> Options -Indexes +FollowSymLinks AllowOverride All Require all granted </Directory>
ErrorLog $APACHE_LOG_DIR/thinhnam_error.log CustomLog $APACHE_LOG_DIR/thinhnam_access.log combined </VirtualHost> Obtain a free Let’s Encrypt certificate: ln -s /etc/nginx/sites-available/thinhnam
server listen 443 ssl http2; listen [::]:443 ssl http2; server_name thinhnam.net www.thinhnam.net;