DEV Community

Cover image for Nginx concepts I wish I knew years ago

Nginx concepts I wish I knew years ago

Aemie Jariwala on January 11, 2021

Nginx is a web server that is used as a reverse proxy, load balancer, mail proxy, and HTTP cache and follows the Master-Slave Architecture. Woah!...
Collapse
 
ankurloriya profile image
Ankur Loriya

sudo nginix -T

For test configuration

Collapse
 
qz11 profile image
Yevazn

Great post!

I'm from HelloGitHub, a nonprofit organization in China. I am reaching out to you to ask if it's OK for us to translate your posts, "Nginx concepts I wish I knew years ago", into Chinese and publish it on our WeChat official account. You own the copyright of course.

How does that sound to you?

Collapse
 
aemiej profile image
Aemie Jariwala

First of all, thank you. As long as I own the copyright, I am fine with this. :)

Collapse
 
ggenya132 profile image
Eugene Vedensky

Thank you for the post, I'll use it as a reference whenever I need to work with NGINX.

Some minor thoughts: although it's probably intuitive to more experienced devs, I think it might be helpful to point out that NGINX will automatically serve static files marked as index.html. Also, in my head it makes more sense to initially show the location block without defining a new root within it to show that NGINX will search your previously defined root path to append the requested URI to before moving on to examples that redefine the root.

Thanks again for sharing.

Collapse
 
ben profile image
Ben Halpern

Great post!

Collapse
 
aemiej profile image
Aemie Jariwala

Thank you!

Collapse
 
bogkonstantin profile image
Konstantin Bogomolov

Good tool to learn how nginx match locations: nginx.viraptor.info/

Collapse
 
aemiej profile image
Aemie Jariwala

Thanks for this 😀

Collapse
 
shwetabh1 profile image
Shwetabh Shekhar

This is great, thanks for sharing!

Collapse
 
aemiej profile image
Aemie Jariwala

Thank you as well for reading!

Collapse
 
mickorbik profile image
Mick Orbik

Solid post!

Collapse
 
aemiej profile image
Aemie Jariwala

Thank you!

Collapse
 
deven96 profile image
Diretnan Domnan

I finally understand, thanks! You've earned yourself a follower

Collapse
 
aemiej profile image
Aemie Jariwala

Glad to know!

Collapse
 
sysnet4admin profile image
Hoon Jo

So Impressive. !

Collapse
 
aemiej profile image
Aemie Jariwala

Thanks a lot!

Collapse
 
pianolinux profile image
Ola

Thank you so much.. This is very helpful.
I can't wait for more of this..

Collapse
 
aemiej profile image
Aemie Jariwala

Sure thing and thankyou!

Collapse
 
taufiqtab profile image
Taufiq Abdullah

Great !, Very helpful thank u so much :)

Collapse
 
aemiej profile image
Aemie Jariwala

Glad to know! :)

Collapse
 
iamfazal profile image
Fazal ur Rehman

Well explained.!

Collapse
 
aemiej profile image
Aemie Jariwala

Thanks!

Collapse
 
mugiwarafx profile image
mugiwarafx

Great post, thanks for sharing!

Collapse
 
aemiej profile image
Aemie Jariwala

Thank you and the pleasure is all mine!

Collapse
 
saleheen profile image
Md Salehin Khan

Great!

Collapse
 
aemiej profile image
Aemie Jariwala

Thank you 😀

Collapse
 
kiranrs profile image
Kiran RS

Please create an article for Apache with nginx (as proxy server) with https.

Collapse
 
kumbharumesh profile image
KMeshU

Good post!

Collapse
 
aemiej profile image
Aemie Jariwala

Thankyou!

Collapse
 
programmerraja profile image
Boopathi

Just awesome bro ✌️

Collapse
 
aemiej profile image
Aemie Jariwala

Thanks 😀

Collapse
 
nitinkatkam profile image
Nitin Reddy

Good article! I have a question about the format of the nginx.conf configuration file... it certainly isn't JSON. What format is it?

Collapse
 
aemiej profile image
Aemie Jariwala

Pleasure is all mine!

Collapse
 
iamfazal profile image
Fazal ur Rehman

Hey Aemie!
Can I use some of your's diagrams in my post?

I will surely give credits.

Collapse
 
aemiej profile image
Aemie Jariwala

I have myself used the diagrams from youtube tutorials & google images as mentioned but I have no problem!

Collapse
 
pankajrajput1462 profile image
pankajrajput1462

awesome article

Collapse
 
aemiej profile image
Aemie Jariwala

Thanks. 👍

Collapse
 
fchaussin profile image
François CHAUSSIN

Great article, thanks for sharing

Collapse
 
aemiej profile image
Aemie Jariwala

Thankyou!

Collapse
 
aemiej profile image
Aemie Jariwala

Thankyou Smith. Glad to know my article could be of help! ☺️

Collapse
 
germavinsmoke profile image
GermaVinsmoke

Atleast give the credits to the person whose diagram images you've used 😑

Collapse
 
aemiej profile image
Aemie Jariwala

Sorry I missed that. I've added all the credits. Thanks a lot for the advice 😀

Collapse
 
germavinsmoke profile image
GermaVinsmoke

Now it's good 😌👌

Collapse
 
software_writer profile image
Akshay Khot

Good article! Very informative.

Collapse
 
aemiej profile image
Aemie Jariwala

Thanks! 👌