Thinhnam.net Configuration Link

location / try_files $uri $uri/ =404;

# PHP-FPM (if using PHP) location ~ \.php$ include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;

# SSL (see Section 4) ssl_certificate /etc/ssl/certs/thinhnam.net/fullchain.pem; ssl_certificate_key /etc/ssl/private/thinhnam.net/privkey.pem; Thinhnam.net Configuration

<Directory /var/www/thinhnam.net/html> Options -Indexes +FollowSymLinks AllowOverride All Require all granted </Directory>

server listen 443 ssl http2; listen [::]:443 ssl http2; server_name thinhnam.net www.thinhnam.net; location / try_files $uri $uri/ =404; # PHP-FPM

sudo apt install certbot python3-certbot-nginx # for Nginx # or sudo apt install certbot python3-certbot-apache # for Apache sudo certbot --nginx -d thinhnam.net -d www.thinhnam.net

ErrorLog $APACHE_LOG_DIR/thinhnam_error.log CustomLog $APACHE_LOG_DIR/thinhnam_access.log combined </VirtualHost> Obtain a free Let’s Encrypt certificate: location / try_files $uri $uri/ =404

# Security Headers add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Content-Type-Options "nosniff" always; add_header Referrer-Policy "strict-origin-when-cross-origin" always;

Fehler melden