Hide Nginx Server Info
Hiding version of nginx server on the website
While deploying APIs on nginx server, we should be aware about future possible vulnerable cases. So better to prevent such possible vulnerability and threats on time.
There are several cves published regularly. In case, attacker know our server info, he/she can test or exploit to our server. So, better to hide them to prevent such cases.
Steps:
Create the custom server name:
Now time to update nginx.conf too:
As the below format
Now, test and reload nginx server:
PreviousInstall the CodeDeploy agent for Ubuntu ServerNextAttach trivy report on email (jenkins pipeline)
Last updated