Tutorial & Configuration
  • Home
  • Desktop
  • Server
  • Mikrotik
  • Tools
  • Home
  • Desktop
  • Server
  • VirtualBox
  • Cisco
  • Mikrotik
  • Tools
  • About
  • Contact
Tampilkan postingan dengan label Nginx. Tampilkan semua postingan
Tampilkan postingan dengan label Nginx. Tampilkan semua postingan

Sabtu, 29 April 2023

Install SSL Let's Encrypt on Ubuntu - nginx web server

 maouam     April 29, 2023     Nginx, Server     No comments   

 1. Install certbot and nginx plugin

    - sudo apt install certbot python3-certbot-nginx -y

2. confirm your web before install SSL

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

3. Check syntax errors

    - sudo nginx -t

4. Reload nginx

    - sudo systemctl reload nginx

5. Check firewal, if active allow https

    - sudo ufw status
    - 
sudo ufw allow 'Nginx Full'
    - sudo ufw delete allow 'Nginx HTTP

6. Obtaining an SSL Certificate

    - sudo certbot --nginx -d test.com -d www.test.com

7. verify auto renewal

    - sudo systemctl status certbot.timer

8. Test renewal proccess

    - sudo certbot renew --dry-run

DONE


NOTE: - First, pointing yourdomain. example: www.test.com test.com to public ip address
             - For another domain, follow just step 6

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

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

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Postingan Lama Beranda

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