0% found this document useful (0 votes)
10 views

nginx

Uploaded by

homan
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

nginx

Uploaded by

homan
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

# nginx new V

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
------
#0 update server
apt update && apt upgrade -y
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
------
#1 install nginx & Certbot
sudo apt install nginx certbot python3-certbot-nginx -y
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
------
#2 copy default NGINX to web
cp /etc/nginx/sites-available/default /etc/nginx/sites-available/dl2.lanevpn.com
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
------
#3 enable website
ln -s /etc/nginx/sites-available/dl2.lanevpn.com /etc/nginx/sites-enabled/
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
------
#4 test
cd /etc/nginx/sites-enabled && ls -la
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
------
#5 edit website config
nano /etc/nginx/sites-available/dl2.lanevpn.com
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
------
#6
remove default values
server_name dl2.lanevpn.com;
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
------
#7 restart NGINX service
systemctl restart nginx
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
------
#8 free ssl
certbot --nginx -d dl2.lanevpn.com --register-unsafely-without-email
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
------
#9 install xui
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
------
#10 ssl panel
/etc/letsencrypt/live/dl2.lanevpn.com/fullchain.pem

/etc/letsencrypt/live/dl2.lanevpn.com/privkey.pem
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
------
# https://www.youtube.com/@mehranv2ray

You might also like