Advanced setup of nginx. How to remove server headers in nginx and setup reverse proxy with nginx.

preview_player
Показать описание
How to do advance setup of nginx.
How to Remove server signature from Nginx
`server_tokens off / on;`

`sudo apt install nginx`
`sudo apt-get install nginx-extras`
How to Add your own custom server name in Nginx
more_set_headers "Server: Fanaticus Custom Server";

How to configure nginx as reverse proxy
location {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;

#fanaticus #nginx #devops
Рекомендации по теме
Комментарии
Автор

The problem is that when you install nginx-extras with apt, it also installs/updates your nginx to whatever version is in the apt repo. Which means that if you ran a newer version of nginx before installing nginx-extras, after you install it your nginx version will be downgraded. Which is not always desired.

fanemanelistu