How to configure Ngnix on VPS for the 1st time

  Рет қаралды 3,124

Hitesh Choudhary

Hitesh Choudhary

Күн бұрын

To configure Nginx on a VPS for the first time, follow these straightforward steps to ensure a smooth setup. Nginx is a versatile web server known for its ability to handle static files, dynamic content, and proxy requests efficiently. Start by securing your VPS with SSH keys and disabling root login for enhanced security. Once logged in, update your system using sudo apt update and proceed to install Nginx using the package manager. After installation, start and enable Nginx to run at boot by executing sudo systemctl start nginx and sudo systemctl enable nginx. Verify the installation by accessing your server's IP address in a web browser, which should display the default Nginx welcome page. To configure your site, navigate to the /etc/nginx/sites-available/ directory, open the default configuration file using a text editor, and customize the settings, including the root directory for your website files. After saving the changes, test the Nginx configuration for errors and reload the service to apply the updates. With these steps, your Nginx server should be ready to serve your website efficiently, laying the foundation for further customization and optimization.
Tools used in this course:
Terminal : www.warp.dev/
VPS used: Linode and Digital Ocean
Docs: docs.chaicode.com
Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year.
Get all source code for react application:
github.com/hit...
All source code is available at my Github account:
github.com/hit...
Our Open-Source Project is here: freeapi.app
Join me at whatsapp: hitesh.ai/what...
for community discord: hitesh.ai/discord
Instagram pe yaha paaye jaate h:
/ hiteshchoudharyofficial
Learn React with 10 projects: • Let's learn react from...
Learn Docker: • A practical guide on D...
Learn Kubernetes: • Complete Kubernetes Co...
How does a browser works: • How does a browser wor...
How nodejs works: • How node JS works | En...
Learn Redux-toolkit: • Learn Redux Toolkit in...
Learn NextJS: • Nextjs Full stack course
Learn Typescript: • Why to learn Typescript
Learn Javascript: • Welcome to new JavaScr...
Learn React Native: • React Native Mastery: ...
Learn Zustand: • React state management...
Learn Golang: • How to get started wit...

Пікірлер: 116
@ompat1l
@ompat1l 6 күн бұрын
This is the content which students would actually consume rather than just DSA
@pushparajmehta
@pushparajmehta Ай бұрын
I don't understand why people don't comment on such amazing videos. This is a gem for developers looking to deploy their own apps. I'm really grateful for the high-quality content you're providing. Deep respect!
@shwetanshusinha2690
@shwetanshusinha2690 Ай бұрын
Sir I watch every video you upload on youtube. I have learnt a lot from you. I had a knack for coding from high school. Currently, I have completed my 1st year btech. Even being a first year student, I had got an internship in a startup as a React developer. I have also created 3 web projects and the 4th one is in progress. Thank you so so much sir.
@brothersumitkumar
@brothersumitkumar Ай бұрын
Hi Sir, I am watching from Delhi. I have already done these things earlier for applications in my job but watching to verify if i was doing correct. You are a tech lead for me.😊
@kmSaifullah
@kmSaifullah Ай бұрын
First time I am watching the almost complete guide on Nginx. Thanks for sharing with us.
@shadowcipheragent
@shadowcipheragent Ай бұрын
This is an amazing series as a mern stack developer I used to called myself a fullstack developer, But when It comes to deployement I was getting scared. But After watching this series. I am in full confidence. Now, my resume become much more impressive after adding this skills sets. We love you sir ♥♥♥♥♥♥
@amitpatel1772
@amitpatel1772 Ай бұрын
Always watching your videos sir. i start my career from your vides.
@anandshinde0358
@anandshinde0358 26 күн бұрын
Thank you so much sir ♥️♥️♥️
@AbhishekRai-qp7ww
@AbhishekRai-qp7ww Ай бұрын
You are a gem for beginners like me. ❤
@TheCheerex-ge5bx
@TheCheerex-ge5bx Ай бұрын
Like always, another banger video!!
@SIR_Studios786
@SIR_Studios786 Ай бұрын
Its a wonderful series for new developers, who always hesitate to make things finalized
@ayushmankumarpandey9844
@ayushmankumarpandey9844 Ай бұрын
Watching it from Chhattisgarh India
@amitsangwan446
@amitsangwan446 Ай бұрын
keep bringing new series which are helpful for developers
@MineeSarkar-lb6zk
@MineeSarkar-lb6zk Ай бұрын
Looking forward for the next video sirr
@dsah264
@dsah264 Ай бұрын
thank you sir for videos these help so much for understanding production things
@dheeru.rajpoot
@dheeru.rajpoot 15 күн бұрын
love from Kanpur
@AbhimanPratap-gm5cr
@AbhimanPratap-gm5cr Ай бұрын
Looking for next video.. i am watching from patna bihar
@msdhaliwal
@msdhaliwal Ай бұрын
you can press ctrl+shift+6 to select multiple lines in the Nano editor
@talhaahmed1689
@talhaahmed1689 Ай бұрын
Great as always!
@arpan_b
@arpan_b Ай бұрын
Looking forward to the next video sir 🙌
@HiteshCodeLab
@HiteshCodeLab Ай бұрын
More to come!
@rahuldas_2004
@rahuldas_2004 Ай бұрын
It is very important serise for me to scale up my skills
@AbhimanPratap-gm5cr
@AbhimanPratap-gm5cr Ай бұрын
You are amazed us with your skills and also your efforts make a student life better and even more better. A big thankyou sir for this series....Keep making this type of series.. Always appreciate your content sir.
@pavankalyanbattu6946
@pavankalyanbattu6946 Ай бұрын
Hey its pavan, watching from Tenali, Andhra Pradesh.
@CodeBeauty__
@CodeBeauty__ Ай бұрын
I am continue user of your content sir
@vimdesarrollo896
@vimdesarrollo896 Ай бұрын
Comment 91 Watching this series since yesterday, I'm clearing a bunch of my questions just from watching your vids, I hope you reach a thousand likes! Greetings from Mexico!
@reubenthomas1033
@reubenthomas1033 Ай бұрын
Awesome, thank you for this! Could you show us some more on nginx, and configurations? Like SSL, Advanced rate limiting with load testing etc? That would be sweet!
@jayeshbaviskar9251
@jayeshbaviskar9251 29 күн бұрын
Thanks for the series
@Aditya_Vyas
@Aditya_Vyas Ай бұрын
I’m watching it at 4:45 in the morning. Keep it on sir.
@andreas-fefe
@andreas-fefe Ай бұрын
Hi Hitesh thanks for your great content. Andreas here from Monaco, France. Really insghtful this playlist
@imamansoni
@imamansoni Ай бұрын
Thanks for this video.
@prasenjitbasu6152
@prasenjitbasu6152 Ай бұрын
Thanks for this lovely and informative series.
@smadarsh3635
@smadarsh3635 Ай бұрын
Thanks❤
@sajeee_1
@sajeee_1 Ай бұрын
Love from Sri Lanka ❤
@arbabhere-h6s
@arbabhere-h6s Ай бұрын
thanks for this video sir
@LearningIs4fun
@LearningIs4fun Ай бұрын
I'm watching from Lesotho.
@aviator456
@aviator456 Ай бұрын
Waiting for the next video
@sbnraju9162
@sbnraju9162 Ай бұрын
Hello Sir, I am Raju watching from Hyderabad
@kpramanath2471
@kpramanath2471 Ай бұрын
Thanks for the info
@shasantv
@shasantv Ай бұрын
Thank you for making this amazing series on VPS Deploy. I found instruction on how to install and configure firewall on VPS but I don't see any info on how to setup fail2ban or any other tool to secure the VPS. Please guide. Thanks. PS. To install and run Nodejs, Python, Php on this VPS, do we have to manually configure nginx to run each of these things?
@awesome-kartikey
@awesome-kartikey 11 күн бұрын
Hi, I am from Roorkee
@MittuRohith
@MittuRohith 17 күн бұрын
watching from hyderabad
@ravisaini9312
@ravisaini9312 Ай бұрын
Enjoying keep it up
@_rishi_ranjan
@_rishi_ranjan Ай бұрын
I am watching from darbhanga bihar ❤
@hariomjha01
@hariomjha01 28 күн бұрын
Thank you sir
@nilanjanpramanik303
@nilanjanpramanik303 Ай бұрын
❤❤❤❤❤❤❤❤🎉🎉🎉🎉🎉🎉🎉🎉🎉 lots of love sir
@pradeeplashtkar3723
@pradeeplashtkar3723 Ай бұрын
Looking forward for upcoming videos
@ShivamJha00
@ShivamJha00 Ай бұрын
Nice job sir
@user-qe3to6he1k
@user-qe3to6he1k Ай бұрын
Thanks for thia vidoe
@ridamsinghal1073
@ridamsinghal1073 Күн бұрын
Nice video
@Scrollunlock
@Scrollunlock Ай бұрын
Thank you sir
@varunraj1823
@varunraj1823 Ай бұрын
Looking forward for the next video 💯
@AnandRaj-ck2yw
@AnandRaj-ck2yw Ай бұрын
awsome video..
@p369m
@p369m Ай бұрын
Thank you
@sharifurrobin7720
@sharifurrobin7720 Ай бұрын
From Bangladesh
@ernestadonu9110
@ernestadonu9110 Ай бұрын
Hi, I am watching from Ghana 🇬🇭
@hendoitechnologies
@hendoitechnologies Ай бұрын
AWS full course video please
@dhirajnivalkar
@dhirajnivalkar Ай бұрын
+1
@sravanakirtana2787
@sravanakirtana2787 Ай бұрын
Hello Sir, watching from Darbhanga Bihar
@ghulamilyas6020
@ghulamilyas6020 Ай бұрын
watching from Lahore , Pakistan
@user-kb6sy4lf1m
@user-kb6sy4lf1m Ай бұрын
Nice video sir
@azeesabdul2674
@azeesabdul2674 Ай бұрын
Crazy ❤
@rakib_bhai74
@rakib_bhai74 Ай бұрын
Commenting for engagement 🎉🎉
@tejaskhanolkar3844
@tejaskhanolkar3844 Ай бұрын
I watching these video❤
@anonymouCodePlay
@anonymouCodePlay Ай бұрын
Hello sir I am from Jaunpur Uttar Pradesh
@ShivaKumar-d1h
@ShivaKumar-d1h Ай бұрын
awesome
@rohitsk6793
@rohitsk6793 Ай бұрын
Let's Go
@aniruddharoy1736
@aniruddharoy1736 Ай бұрын
carry on bro
@pikundas9639
@pikundas9639 Ай бұрын
🔥🔥🔥🔥🔥🔥🔥
@InfinitelyScrolling
@InfinitelyScrolling Ай бұрын
Thanks
@preethamk3635
@preethamk3635 Ай бұрын
From Bangalore
@user-fw3wb6sn5o
@user-fw3wb6sn5o 8 күн бұрын
Like it
@ayushporwal5950
@ayushporwal5950 13 күн бұрын
i am watching around 4am because my nerdy brain is not shutting down
@sam_sharma24
@sam_sharma24 Ай бұрын
living legend
@arupde6320
@arupde6320 Ай бұрын
you better build some apllications like Todo app and host / deploy it . that way we can understand the end to end lifecycle .
@user-kb6sy4lf1m
@user-kb6sy4lf1m Ай бұрын
Tx
@TechReviewPro024
@TechReviewPro024 13 күн бұрын
Learning
@Shubham-rf2bs
@Shubham-rf2bs 16 күн бұрын
@user-wl4ie2te2s
@user-wl4ie2te2s Ай бұрын
🤩
@ajinkyajoshi9402
@ajinkyajoshi9402 Ай бұрын
I am watching from MH
@zainulabideen_1
@zainulabideen_1 Ай бұрын
I am Watching this video from Pakistan
@etto553
@etto553 Ай бұрын
nice video
@armaan4770
@armaan4770 18 күн бұрын
@its_anand.kr.mandal
@its_anand.kr.mandal Ай бұрын
Form Jamshedpur😊
@sagarwork-vt2yo
@sagarwork-vt2yo Ай бұрын
yes
@samsahidul
@samsahidul 21 күн бұрын
hey sir take love ❤
@msdhaliwal
@msdhaliwal Ай бұрын
can we get something on warp security and privacy. it seems like they are uploading our commands to their server for learning/something. those commands will surely contain passwords and stuff. I am a bit concerned about it. Loving your deploy series
@harshitahuja6737
@harshitahuja6737 Ай бұрын
Just wanted to know the starting countdown video is it provided by KZbin?
@eqfira
@eqfira Ай бұрын
❤❤
@advit778
@advit778 Ай бұрын
😍😍
@akshat-09
@akshat-09 Ай бұрын
🙏🏼♥️🔥
@say.xy_
@say.xy_ Ай бұрын
Correct me if I am mistaken but wouldn’t traefik does the same job as nginx or even better? It’s pretty handy with docker compose, or even handling ssl certificates?
@knowwow6638
@knowwow6638 Ай бұрын
From Karachi
@codeiton
@codeiton Ай бұрын
cool
@crown8887
@crown8887 Ай бұрын
101th comment form me...markit ❤
@msdhaliwal
@msdhaliwal Ай бұрын
watching it from my sofa and really enjoying it but my comment about security is getting deleted every time. Does anyone knownwhy it might be ?
@_phonesense
@_phonesense Ай бұрын
Hi sir, why you haven't started with AWS. It would be better.
@MrVaibhavv
@MrVaibhavv Ай бұрын
i am watching
@shoaburrahmanchishty198
@shoaburrahmanchishty198 Ай бұрын
Sir will you teach us the integration of cloudflare type services in this playlist? Just asking from the curiosity. I know teaching everything is not possible in one playlist. Moreover, it is not justified from your end also as we are getting this for free. I appreciate your effort. May Allah help you.
@eqfira
@eqfira Ай бұрын
❤❤
@awesome-kartikey
@awesome-kartikey 7 күн бұрын
I think the spelling is incorrect in the title - Nginx
@kpsingh7643
@kpsingh7643 Ай бұрын
to complete just 90
@madmaxdev
@madmaxdev Ай бұрын
This is a comment
How to add rate limiting in Ngnix
12:05
Hitesh Choudhary
Рет қаралды 2,5 М.
Learn web deployment in just 1 video
2:10:56
Hitesh Choudhary
Рет қаралды 15 М.
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 24 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 34 МЛН
Alat yang Membersihkan Kaki dalam Hitungan Detik 🦶🫧
00:24
Poly Holy Yow Indonesia
Рет қаралды 11 МЛН
Ground Reality of Tier 3 colleges is Horrifying
12:13
Harkirat Singh
Рет қаралды 195 М.
host ALL your AI locally
24:20
NetworkChuck
Рет қаралды 1 МЛН
Apache vs NGINX
7:53
IBM Technology
Рет қаралды 293 М.
100+ Linux Things you Need to Know
12:23
Fireship
Рет қаралды 1 МЛН
Deploy - A series on deployment of code
19:56
Hitesh Choudhary
Рет қаралды 18 М.
NGINX Tutorial - What is Nginx
14:32
TechWorld with Nana
Рет қаралды 143 М.
Is Windows RUINING your Coding Career?
10:52
Harkirat Singh
Рет қаралды 101 М.
SEO For React Developers
9:31
Mehul - Codedamn
Рет қаралды 54 М.
100+ Docker Concepts you Need to Know
8:28
Fireship
Рет қаралды 947 М.
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 24 МЛН