Tutorial & Configuration
  • Home
  • Desktop
  • Server
  • Mikrotik
  • Tools
  • Home
  • Desktop
  • Server
  • VirtualBox
  • Cisco
  • Mikrotik
  • Tools
  • About
  • Contact

Sabtu, 29 April 2023

Nginx Reverse Proxy on Ubuntu

 maouam     April 29, 2023     Nginx, Server     No comments   

 1. update & upgrade os

    - sudo apt update && apt upgrade -y

2. Install nginx

    - sudo apt install nginx -y

3. Allow firewall if enable

    - sudo ufw allow 'Nginx HTTP'

4. Check status nginx

    - systemctl status nginx

5. Config server block for your domain

    - sudo nano /etc/nginx/sites-available/test.com

server {
        listen 80;
        listen [::]:80;

        server_name test.com www.test.com;
 
        location / {
        include proxy_params;
        proxy_pass http://192.168.0.100; 

         }
}

6. Enable configuration

    - sudo ln -s /etc/nginx/sites-available/test.com /etc/nginx/sites-enabled/

7. Check syntax errors

    - sudo nginx -t

8. If no problem, restart nginx

    - sudo systemctl restart nginx

DONE

  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Kirimkan Ini lewat EmailBlogThis!Bagikan ke XBerbagi ke Facebook
Posting Lebih Baru Posting Lama Beranda

0 komentar:

Posting Komentar

Popular Posts

  • Install zenchain node di Ubuntu-Linux (self-host node)
      Install zenchain node di Ubuntu-Linux (self-host node)   #Buat wallet baru di metamask dan import ke OKX juga (EVM) #WL di web (supa...
  • Install 0GDA Node & Client di Ubuntu-Linux
    Install 0GDA Node & Client di Ubuntu-Linux Spec vps CPU 8 core RAM 16 GB Contabo spec VPS-3 #Buat Wallet EVM (buat di OKX simpan p...
  • Install PWR node di Linux-Ubuntu
    Install PWR Node DC PWR: https://discord.com/invite/Mu3ktCk4 #Update paket sudo su apt update #Install java apt install openjdk-19-jre-headl...
  • INSTALL CHASM NODE DI LINUX/UBUNTU
      INSTALL CHASM DI LINUX/UBUNTU   #Buka web https://console.groq.com/keys   | daftar #Jika sudah daftar, buat api di https://console.g...

LABELS

  • AWS
  • Cisco
  • Cloud
  • Desktop
  • DevOps
  • Mikrotik
  • Network
  • Nginx
  • node2an
  • Proxmox
  • Server
  • Tools
  • VirtualBox
  • Zimbra

Sosial Media

Facebook 35.4Fans
Twitter 519Followers
Instagram 1060Followers
google+ 16Followers
Youtube 24Subscriber

Widget

  • Home
  • About Us
  • Contact Us

Copyright © Tutorial & Configuration