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 {
 server_name nachum234.com;

 location / {
 proxy_set_header Host $host;
 proxy_set_header X-Real-IP $remote_addr;
 proxy_pass http://192.168.1.10:8080;
 }
}

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