Where can I find information or a step by step instruction on safe setting up a web server?

Latest VDS rushed, want to take new ones. Where can I read how on the system to put the web server and how to protect themselves from external threats? Maybe there's a manual transmission or in what direction to dig, not to teach the entire math portion?)
July 2nd 19 at 17:33
3 answers
July 2nd 19 at 17:35
I'm afraid that the issue of security is too versatile and consists of different aspects depending on ON. It is advisable to determine exactly how the hacking happened and what rights were obtained in the system. There are many General articles like "use keys, not passwords" and "use default ports", but the General instructions "How to do it safely?" is not and cannot be.

Take safety information for each of the used FOR available no. Start with these articles (for example).
July 2nd 19 at 17:37
Learns best in practice. Take VPS put in it everything you need to work Your website.
This will be Your ground for testing.
And begin to "torture" the server.
Thus You will begin to understand more or less how to protect your server.
Gather initial information on this resource: codeby.net
July 2nd 19 at 17:39
Recipe for all occasions there. Security is a range of measures and, depending on the tasks they are individual. In addition to security of hosting you need also to consider the safety of the web engine of your website. Mostly breaking and entering occurs through components of the CMS used on the website.
You can start consideration of this issue with articles
Improving website security
Security Joomla
Wordpress Security
As for the security of the operating system, you need to know what OS you will use.
But the General rules are
  • keep installed software up to date, simply update more often
  • configure the firewall. open access only to what you need
  • use keys for ssh
  • use sudo
  • carefully set permissions on files and folders

Find more questions by tags Hosting