T
T
teen2017-04-02 22:46:57
Nginx
teen, 2017-04-02 22:46:57

How do you secure your nginx sites?

I would like to hear opinions on how to protect your sites from unwanted attacks, shell uploads, and more.
There is a server on CentOS 7 running Nginx, php7.1, MariaDB (I use adminer ).
Engines will be used such as bitrix, wp, modx and php frameworks are different.
I'm more interested in writing secure nginx configs.
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Sokolov, 2017-04-02
@MSkitalec

Opinion: send traffic through CloudFlare - they can filter some of the threats.
Other threats and security holes exist at the level of PHP and engines and are almost not filtered by the web server. You can analyze the logs for typical patterns, say, fail2ban 'om.

D
Dimonchik, 2017-04-02
@dimonchik2013

https://github.com/nbs-system/naxsi

N
Nikolai Kovalev, 2017-04-06
@nkmail

https://configserver.com/cp/csf.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question