Create simple nginx proxy pass configuration

I tried today to install simple nginx reverse proxy configuration to my website.

I searched in google and find few useful manuals that I can use but it was too long for my needs so here is very quick guide (I am pretty sure it can be improved) to setup nginx as a reverse proxy:

  • Install and configure nginx
sudo apt-get install nginx
sudo vi /etc/nginx/conf.d/proxy.conf
server {

 location / {
 proxy_set_header Host $host;
 proxy_set_header X-Real-IP $remote_addr;

If you have a suggestion to improve it please leave a comment