| by Arround The Web

How to Setup Nginx with Let’s Encrypt using ACME on Ubuntu 20.04

The post How to Setup Nginx with Let’s Encrypt using ACME on Ubuntu 20.04 appeared first on LinOxide.

Share Button
Read More
| by Arround The Web

How to Setup Nginx with Let’s Encrypt on Ubuntu 20.04

The post How to Setup Nginx with Let’s Encrypt on Ubuntu 20.04 appeared first on LinOxide.

Share Button
Read More
| by Arround The Web

How to Install NGINX on Ubuntu 20.04 and Host Website

NGINX is an open-source web server software. You can deploy NGINX as a standalone web server, or as a proxy in front of other web servers (in essence, reverse proxy). Nginx is one of the best web servers to host […]
The post How to Install NGINX on U…

Share Button
Read More
| by Scott Kilroy

Block php files from being uploaded (using nginx)

If you find people trying to upload php into your wordpress site you can add this to your nginx config file location ~* /(?:uploads)/.*.php$ { deny all; access_log off; log_not_found off; }

Share Button
Read More
| by Scott Kilroy

Stop image hotlinking on NGINX

If you think it’s possible that someone is linking to images hosted on your site add the following to you nginx config file # Stop deep linking or hot linking location /images/ { valid_referers none blocked www.linuxconsultant.org linuxconsultant.org; if ($invalid_referer) { return 403; } } Or if you want to be a wiseguy and replace the hotlinked image with something else # Stop deep linking or hot linking location /images/ { valid_referers none blocked www.linuxconsultant.org linuxconsultant.org; if ($invalid_referer) { return […]

Share Button
Read More
| by Scott Kilroy

Nginx with certbot

Remember when setting up certbot using nginx to turn off the line in your config that blocks files that start with . This line: location ~ /\. { access_log off; log_not_found off; deny all; } A good guide can be found here https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04

Share Button
Read More