Add Nginx Website to Debian/Nginx Server

Add the server Block Add the following configuration block, which is similar to the default, but updated for your new directory and domain name: Enable this server block by creating a symbolic link to your custom configuration file inside the sites-enabled directory, which Nginx reads from during startup:

Remove Nginx

Removes all but config files: or remove everything: After using any of the above commands, use this in order to remove dependencies used by nginx which are no longer required:

Install MySQL, Nginx and Zabbix on Debian 11

At first, let’s update the packages: Next, download MySQL from the offical page or use wget command: Get the repo package When you attempt to install the package, it will ask you what product and version you want to install. Here you can select The MySQL version, Tools, Connectors (like MySQL Workbench), and preview packages. … Read more

Set Up Lets Encrypt on Debian 10 with Nginx

Update your package list Install the dependencies for the python3-certbot-nginx package, which include the python3-acme, python3-certbot, python3-mock, python3-openssl, python3-pkg-resources, python3-pyparsing, and python3-zope.interface packages: Iinstall the python3-certbot-nginx package: Certbot needs to be able to find the correct server block in your Nginx configuration for it to be able to automatically configure SSL. Specifically, it does this … Read more

Host a Web Site with a Domain on IPFS

This article describes how to host a web site on IPFS. Requirements: Access to a Registered Domain and DNS records. Edit your DNS to point the A record to the IPFS server. We will need this to resolve in order to install a Let’s Encrypt Certificate. Lets Start with an Update # sudo apt update … Read more

Nginx fails to start when Centos/Plesk migrated to Azure

There is a small issue where a Plesk/CentOS 7 system is migrated to Azure and nginx fails to start. This is the error in the nginx log # cat /var/log/nginx/error.log 2018/06/14 22:11:41 [emerg] 9341#0: bind() to failed (99: Cannot assign requested address) If so then to edit: # /etc/sysctl.conf And add: # net.ipv4.ip_nonlocal_bind = … Read more

502 Errors on Plesk

Getting 502 Errors on plesk Try and disable nginx and re-configure your apache configuration to see if it will correct the errors nginx is showing. To disable nginx, issue : # /usr/local/psa/admin/bin/nginxmng -d To reconfigure your apache configuration issue : # /usr/local/psa/admin/bin/httpdmng –reconfigure-all