Learn Proper NGINX Configuration Context Logic

  Рет қаралды 45,940

NGINX

NGINX

Күн бұрын

This basic how-to video, we cover how your NGINX’s configuration content is structured, dissecting the conf file and how it was created, to achieve a desired outcome.
We cover:
◆ Execute Basic NGINX Commands
◆ Locate your NGINX configurations
◆ Understand role of context and blocks
How to Get Started With NGINX
⬡ bit.ly/3MeGufw
Creating NGINX Plus and NGINX Configuration Files
⬡ bit.ly/38jA9zR
Free eBook: The Complete NGINX Cookbook
⬡ bit.ly/35qRKVB
Chapters:
0:00 - How is NGINX's Configuration Context structured?
0:31 - Session Agenda and Use Cases
1:45 - Basic Commands and File Locations
3:07 - Configuration Contexts
5:58 - Directives and Blocks
6:46 - Live Demo
12:23 - Reach out with any questions!

Пікірлер: 33
@yellemonster
@yellemonster Жыл бұрын
So glad I found this video. Thank you!
@hoavoduong4800
@hoavoduong4800 2 жыл бұрын
Thanks. This tutorial is easy understand
@autobahnmensch
@autobahnmensch 2 жыл бұрын
This class is awesome 😎
@3042640426
@3042640426 Жыл бұрын
great video to have a big picture of config context
@saengthong8945
@saengthong8945 7 ай бұрын
Thank you...Great Video
@pixelbogpixxelbog2090
@pixelbogpixxelbog2090 10 ай бұрын
Awesome video :)
@luckbychance3179
@luckbychance3179 Жыл бұрын
Hi Jay, can you explain how the communication happens from client to nginx to back-end server and vice versa
@bjarnesegaard5701
@bjarnesegaard5701 2 жыл бұрын
Thanks for the video.Im new to this and trying to use the NGINX as an API gateway in a kubernetes setting. It is the basic location and upstream stuff that doesnt seem to work. Do you have a video that specifically creates a gateway with NGINX?
@yuanyuan8326
@yuanyuan8326 2 жыл бұрын
Hi, Jay. The video exactly what I want and thank you so much for sharing it. I have a question now, did Nginx support to suspend a request to a service until it's requirement variable, which comes from another request's response, is ready?
@bmfitzgerald3
@bmfitzgerald3 2 жыл бұрын
GREAT video, thank you. For some reason server good administration/configuration content seems to be quite rare on KZfaq. Question: since you configured servers (virtual hosts) in both web.conf and server.conf, I am curious... is there any functional difference between the various conf files? Or do they all function in exactly the same way and it's just up to you to break up your configuration however you want?
@stephenlance4727
@stephenlance4727 Жыл бұрын
Just to break up your config. This style of organization makes it easier to modify complex configurations as well as migrate your install to another machine.
@samansaeedi102
@samansaeedi102 10 ай бұрын
hi there. thanks for the nice video. I have a question. default.conf and web.conf are missing by default for me. is there something I must do in order to have them in conf.d?
@namanrawal5849
@namanrawal5849 2 жыл бұрын
if I'm using the Kong Ingress Controller (runs on top of Nginx) in Kubernetes, where do I locate the main nginx conf file? I don't have an /etc/nginx/nginx.conf file. I do, however, have an /etc/kong/kong.conf.default file.
@RalphNgOfficial
@RalphNgOfficial Жыл бұрын
Could you also please explain what are Upstream and Downstream ? Thanks
@Tenly2009
@Tenly2009 2 жыл бұрын
At around 10:15 when you describe how the .conf files referenced by the include directories are loaded and processed alphabetically, I assume that you are only referring to those loaded with the wildcard. If I needed to ensure that one runs first or last, I could just add additional include directives (using the full file name) in any of the auto-loaded .conf files and those include statements would be loaded in the order they appear - right? Or not? (You made it sound like all of the include files are loaded alphabetically.). Other than this one slightly unclear point, the video was great and very useful! Thanks.
@stephenlance4727
@stephenlance4727 Жыл бұрын
The wildcard loads files alphabetically. This is standard Linux behavior. To load certain files first, you can name your files like so: “01-file.conf”
@TSIXGaming
@TSIXGaming 7 ай бұрын
Is there a guide for configuring user and group privelage for nginx and php.fpm for wordpress on amazon linux 2023
@JesusHerrera-kl7il
@JesusHerrera-kl7il 9 ай бұрын
Good
@ramanarasimhaprasad2956
@ramanarasimhaprasad2956 7 ай бұрын
Hi Can we have multiple proxy_pass in single block directive (location)?
@katzda
@katzda 2 жыл бұрын
I have a question about that location directive. Will a simple forward slash match every Uri or literally just when you type a forward slash? Or why do you not need to type forward-slash in URI and it still does resolve? I have an app and I think it just resolves all URIs. But its kind of magic to me, needs a few words of explanation.
@stephenlance4727
@stephenlance4727 Жыл бұрын
Every URI begins with a slash. So a simple slash will cause a location match for any URI in nginx.
@proxy5061
@proxy5061 Жыл бұрын
You guys confuse me up with new things lol,🥺🙏
@ankitsaini5156
@ankitsaini5156 Жыл бұрын
How we define worker processes and connection And what is paging ?
@gajanangaikwad8934
@gajanangaikwad8934 Жыл бұрын
How to redirect the request using path to specific folder
@ddrci88
@ddrci88 2 жыл бұрын
So basic , this tutorial, you can make how to optimize php workers , how to optimize worker and how to proper configures fastcgi caching, how to configure caching layer
@MuhammadTariqKhan-SE
@MuhammadTariqKhan-SE 3 жыл бұрын
Please share the github link.
@namanrawal5849
@namanrawal5849 2 жыл бұрын
"if you have any questions, please feel free to reach out to me in the comments section below" ------ WHERE ARE OUR RESPONSES JAY DESAI? lol
@surajdutta5730
@surajdutta5730 2 жыл бұрын
why is there no sites-available and sites-enabled folder in /etc/nginx?
@stephenlance4727
@stephenlance4727 Жыл бұрын
Perhaps you’re not using Debian Linux. Different distributions can have config files in different locations. If you build nginx from source, you can choose anywhere for config files location.
@proxy5061
@proxy5061 Жыл бұрын
Same also i can't see conf.d directive 🥺, tried everything , only way for me to complete targets , is to put everything manually,
@youtubeoneverything4581
@youtubeoneverything4581 Жыл бұрын
Those two folders are only available if you have installed nginx from ubuntu apt / snap repository and not from nginx source repo
@et_phonehome_2822
@et_phonehome_2822 6 ай бұрын
They exist for me whether I use Ubuntu or not when I use the OS repositories.
@user-fg6rs9xd5x
@user-fg6rs9xd5x 3 ай бұрын
Start Nginx: sudo systemctl start nginx Stop Nginx: sudo systemctl stop nginx Restart Nginx (to apply configuration changes): sudo systemctl restart nginx Reload Nginx (to apply configuration changes without interrupting active connections): sudo systemctl reload nginx Check Nginx Configuration Syntax: sudo nginx -t View Nginx Status: sudo systemctl status nginx Enable Nginx to Start at Boot: sudo systemctl enable nginx View Worker Processes (list running worker processes and their process IDs): ps aux | grep nginx ps aux | grep nginx sudo nginx -V | grep "worker_connections"
Load Balancing with NGINX
30:03
NGINX
Рет қаралды 62 М.
The NGINX Crash Course
50:53
Laith Academy
Рет қаралды 480 М.
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 45 МЛН
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 7 МЛН
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
00:20
FLIP FLOP Hacks
Рет қаралды 11 МЛН
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 23 МЛН
100+ Docker Concepts you Need to Know
8:28
Fireship
Рет қаралды 895 М.
NGINX с нуля до профи. Nginx что это, как работает, как парсит конфиги?
14:08
NGINX Linux Server | Common Configurations
17:28
Akamai Developer
Рет қаралды 174 М.
Apache vs NGINX
7:53
IBM Technology
Рет қаралды 275 М.
Reverse proxy nginx letsencrypt tutorial
17:12
Christian Lempa
Рет қаралды 116 М.
NGINX as an API Gateway
25:47
NGINX
Рет қаралды 39 М.
Linux File System/Structure Explained!
15:59
DorianDotSlash
Рет қаралды 4,1 МЛН
What is NGINX and how reverse proxies work?
10:16
Mehul - Codedamn
Рет қаралды 68 М.
КРАХ WINDOWS 19 ИЮЛЯ 2024 | ОБЪЯСНЯЕМ
10:04
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18