Configure NGINX as a Reverse Proxy

  Рет қаралды 194,091

NGINX

NGINX

Күн бұрын

Reverse proxy is one of the most widely deployed use case for NGINX instance, providing an additional level of abstraction and control to ensure the smooth flow of network traffic between clients and servers.
In this basic how-to video, we cover:
◆ High level understanding of forward proxy and reverse proxy
◆ proxy_pass directive
◆ Redefining Request Headers
Github Repo
⬡ github.com/jay-nginx/reverse-....
Avoiding the Top 10 NGINX Configuration Mistakes
⬡ bit.ly/36R3Bwp
Free eBook: The Complete NGINX Cookbook
⬡ bit.ly/35qRKVB
How to Get Started With NGINX
⬡ bit.ly/3MeGufw
Chapters:
0:00 - Configure NGINX as a Reverse Proxy Agenda Overview
0:54 - What is NGINX and why is it lightweight?
1:36 - What is a Reverse Proxy?
2:24 - How does NGINX work as a Proxy?
3:53 - What is NGINX's default behavior?
6:44 - Configure NGINX as a Reverse Proxy Demo
8:13 - NGINX acting as a web server

Пікірлер: 53
@yahya1badawi1
@yahya1badawi1 2 жыл бұрын
simple and direct to the point tutorial :))
@jairunet
@jairunet 5 ай бұрын
Seriously? I got more confused now and will need to basically look for a better explanation, I appreciate the work of the engineer here, however, there is a saying, when you understand something really well you can explain it to a 5-year-old and it will be understood.
@direttodiretto3120
@direttodiretto3120 Жыл бұрын
Fantastic video it helped me to understand how to configure, in a right way, this technology. Thank you.
@lahwfsk167
@lahwfsk167 2 жыл бұрын
very nice and clear tutorial, thx so much
@ghauri001
@ghauri001 2 жыл бұрын
very informative video, thank you
@Gustavoutnfra
@Gustavoutnfra Жыл бұрын
*Very nice video and explanation, thanks a lot and greetings from Argentina.*
@alirezahassani8646
@alirezahassani8646 2 жыл бұрын
Hi sir, Good custom logs format. TY.
@mabrukc
@mabrukc 9 ай бұрын
Good technical level on the presentation and informative
@stevecassidy
@stevecassidy Жыл бұрын
Really useful video - thanks very much. could you do another showing how you can proxy based on the domain/subdomain name please?
@bivasranjandas1346
@bivasranjandas1346 2 жыл бұрын
Excellent Demo
@marciosantos941
@marciosantos941 2 жыл бұрын
Thanks a lot!
@Alirezavafaee
@Alirezavafaee Жыл бұрын
Thanks for the video
@miladvaziri3
@miladvaziri3 Жыл бұрын
it was useful, thanks a lot
@fabr3331
@fabr3331 2 жыл бұрын
After configuring NGINX to an IIS web server, is there any additional setup needed at Windows Server?
@samansaeedi102
@samansaeedi102 7 ай бұрын
please tell us how you installed nginx on vm? thanks
@mariobader2152
@mariobader2152 11 ай бұрын
What can you do to display static elements that have a relative path? Doesn't seem to work
@74giannico
@74giannico 2 жыл бұрын
thanks for the video. I wanted to ask if there is a configuration that works with exchange. I have tried various configurations but I have had problems especially with the OUTLOOK and mobile clients
@ronkali5365
@ronkali5365 2 жыл бұрын
Can this be setup on Qnap for plex and emby apps ?
@_dwix
@_dwix 2 жыл бұрын
Is it possible to use nginx reverse proxy as tcp?
@DentargPL
@DentargPL 2 жыл бұрын
ctrl+L is faster than clear ;), thx for the tutorial
@lyingcat9022
@lyingcat9022 2 жыл бұрын
Or alias "c" to "clear" in your terminal rc file. :)
@matthiasebert9612
@matthiasebert9612 Жыл бұрын
I have a ca provideing certificates for all my servers. How can I configure nginx to use the ca.crt file to check if it is one of my own servers requesting and just let this requests through?
@fabricenikine1423
@fabricenikine1423 7 ай бұрын
Hello, i have this error on the firefox page : 502 gateway I have an nginx proxy reverse with an iis. How to resolve this error ? Thanks.
@dsulvadarius
@dsulvadarius 11 ай бұрын
Is it beneficial to configure nginx as a web server and a reverse proxy on the same VM?
@pttech4412
@pttech4412 Жыл бұрын
is there a simple line we can add to the config where we set up the custom_log to include datetime? I am struggling to find something suitable on google
@rehmanarshad1848
@rehmanarshad1848 Жыл бұрын
If you're on Linux you can use logrotate It's a built in utility for managing log files. Create a custom logroate job for nginx $ vi /etc/logrotate.d/nginx /var/log/nginx/*.log { create 600 nginx nginx daily delay-compress date %mm-dd-yyy rotate 4 post_rotate >2 /dev/null } The file would look something like that. You can look the documentation or Linux manual pages for logrotate. Good luck on your endeavors!
@chrisowuor605
@chrisowuor605 15 күн бұрын
how about if I have two apps running in my instance say in port 4000 and 9000 then I want to serve the two apps using the same IP but different paths in the request
@justinnoor4915
@justinnoor4915 2 жыл бұрын
Can the reverse proxy and load balancer be on the same instance of Nginx, or should they be on separate instances?
@jay15183
@jay15183 Жыл бұрын
Absolutely. That's the idea. However, for enterprise architectures, I'd defer to the security teams for guidance.
@user-vb5tt4io1c
@user-vb5tt4io1c 5 ай бұрын
default nginx behaviour is bloody naughty in my experience lol
@mohamedyoussef8835
@mohamedyoussef8835 Жыл бұрын
Awesome video +++++++++++++ 🙂
@tegaogheneovo5881
@tegaogheneovo5881 Жыл бұрын
Getting cors policy blocked I don't know how to write up the sites available file for my stack😣
@ahmedfarhat8853
@ahmedfarhat8853 Жыл бұрын
Thank you so much for tNice tutorials
@imran06614
@imran06614 3 ай бұрын
I am using Nginx as a revere proxy and I have a requirement to Intercept the application server response ( encrypt it by calling another service before returning it to the client ) could you please suggest a solution.
@uuu12343
@uuu12343 Жыл бұрын
Hi! Correct me if im wrong, I am using Pihole, a DNS Resolver Server + Sinkhole + Firewall. To map a custom URL (I.e. domain:port/subdomain) to a custom Domain Name, I'll need to use reverse proxy, am i right?
@toasterbath1395
@toasterbath1395 Жыл бұрын
Yes this is the whole point of a reverse proxy to map a subdomain to the same public ip but different port/ internal ip
@tkk554
@tkk554 2 жыл бұрын
any way to do Reverse Proxy for tcp stream?
@nginx_official
@nginx_official 2 жыл бұрын
Absolutely - You can proxy TCP connections using proxy_pass directive. It is performed via the Stream Module. Links below give you more details. docs.nginx.com/nginx/admin-guide/load-balancer/tcp-udp-load-balancer/ docs.nginx.com/nginx/admin-guide/security-controls/securing-tcp-traffic-upstream/
@brotherly9058
@brotherly9058 2 жыл бұрын
In my directory, I can't find default.conf, what can I do? I NEED SOME HELPS.
@nginx_official
@nginx_official 2 жыл бұрын
default.conf is located in /conf.d/default.conf when you install NGINX OSS or Plus. Here’s a link to installing NGINX OSS - docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/
@discordxd4337
@discordxd4337 Жыл бұрын
I believe you can but tNice tutorials will depend what version you have.
@deepaksingh-qd7xm
@deepaksingh-qd7xm Күн бұрын
can anyone tell me i am passing the headers from frontend but it is lost at nginx gateway i want to pass it back to backend anyone who knows how to do it?????????????????????????????????????????????
@hackerarmy7037
@hackerarmy7037 2 жыл бұрын
Is Nginx free version support tcp and udp reverse proxy?
@nginx_official
@nginx_official 2 жыл бұрын
Yes - NGINX OSS (free version) supports both TCP and UDP proxying/load-balancing. Both TCP/UDP proxying/load-balancing is performed by the Stream Module. More details on the links below: docs.nginx.com/nginx/admin-guide/load-balancer/tcp-udp-load-balancer/
@Jamie-kf2vf
@Jamie-kf2vf 2 жыл бұрын
Well this is awesome. My knowledge on networks, reverse proxies etc is utterly woeful but this helps me understand the fundamentals of Nginx. Thank you!
@deviantstudio
@deviantstudio 11 ай бұрын
it becomes pain in the as when it comes to configuring https reverse proxy
@andyfifedenim
@andyfifedenim 2 жыл бұрын
Where is the git hub?
@nginx_official
@nginx_official 2 жыл бұрын
Here's the repo: github.com/jay-nginx/reverse-proxy.
@andyfifedenim
@andyfifedenim 2 жыл бұрын
@@nginx_official thank you.. great video btw!!
@Sophia_lovy
@Sophia_lovy Жыл бұрын
/etc/nginx/conf.d is empty.
@pebcak420
@pebcak420 Жыл бұрын
DONT BE ALARMED! You have a mobile cranial impression. Please seek medical attention or perhaps check your camera filter settings :)
@tegaogheneovo5881
@tegaogheneovo5881 Жыл бұрын
And don't know if I should use conf,🙄🙄 sites available 😠
@yapayzeka
@yapayzeka 16 күн бұрын
proxy_add_x_forwarded_for gives error for me
How to Setup a Reverse Proxy on Home Network
28:15
Toasty Answers
Рет қаралды 69 М.
Here's why you need Nginx as a Reverse Proxy for your Node.js app
10:17
Software Developer Diaries
Рет қаралды 13 М.
ТОМАТНЫЙ ДОЖДЬ #shorts
00:28
Паша Осадчий
Рет қаралды 12 МЛН
ISSEI funny story 😂😂😂Strange World 🌏 Green
00:27
ISSEI / いっせい
Рет қаралды 87 МЛН
NGINX с нуля до профи. Nginx что это, как работает, как парсит конфиги?
14:08
Apache vs NGINX
7:53
IBM Technology
Рет қаралды 241 М.
The NGINX Crash Course
50:53
Laith Academy
Рет қаралды 467 М.
What is NGINX and how reverse proxies work?
10:16
Mehul - Codedamn
Рет қаралды 65 М.
Proxy vs Reverse Proxy (Real-world Examples)
5:17
ByteByteGo
Рет қаралды 487 М.
Run Multiple Site from one IP with  reverse proxy Nginx
7:45
Juan Nadal
Рет қаралды 105 М.
Big Tech AI Is A Lie
16:56
Tina Huang
Рет қаралды 50 М.
Why spend $10.000 on a flashlight when these are $200🗿
0:12
NIGHTOPERATOR
Рет қаралды 16 МЛН
Vortex Cannon vs Drone
20:44
Mark Rober
Рет қаралды 12 МЛН
iPhone - телефон для нищебродов?!
0:53
ÉЖИ АКСЁНОВ
Рет қаралды 3,5 МЛН