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 0G Storage Node di Ubuntu-Linux
    Install 0G Storage Node di Ubuntu-Linux Spec VPS CPU: 4 Core RAM: 16 GB Disk: 500GB Note: disarankan menjalankan skrip di tmux atau screen, ...
  • Install Node ICN Protocol di Ubuntu-Linux (Pharse-2)
     Install Node ICN Protocol di Ubuntu-Linux (Pharse-2) ICN pakai port 9000, pastikan tidak ada VPS/node anda yg menggunakan port tersebut. #B...

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