
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!...
We're a place where coders share, stay up-to-date and grow their careers.
sudo nginix -T
For test configuration
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?
First of all, thank you. As long as I own the copyright, I am fine with this. :)
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.
Great post!
Thank you!
Good tool to learn how nginx match locations: nginx.viraptor.info/
Thanks for this π
This is great, thanks for sharing!
Thank you as well for reading!
I finally understand, thanks! You've earned yourself a follower
Glad to know!
Well explained.!
Thanks!
Good post!
Thankyou!
Great post, thanks for sharing!
Thank you and the pleasure is all mine!
Please create an article for Apache with nginx (as proxy server) with https.
Just awesome bro βοΈ
Thanks π
Solid post!
Thank you!
So Impressive. !
Thanks a lot!
Thank you so much.. This is very helpful.
I can't wait for more of this..
Sure thing and thankyou!
Great!
Thank you π
Great !, Very helpful thank u so much :)
Glad to know! :)
Great post, This is exactly what I was looking for...
Thankyou Smith. Glad to know my article could be of help! βΊοΈ
Hey Aemie!
Can I use some of your's diagrams in my post?
I will surely give credits.
I have myself used the diagrams from youtube tutorials & google images as mentioned but I have no problem!
awesome article
Thanks. π
Great article, thanks for sharing
Thankyou!
Good article! Very informative.
Thanks! π
Good article! I have a question about the format of the nginx.conf configuration file... it certainly isn't JSON. What format is it?
Atleast give the credits to the person whose diagram images you've used π
Sorry I missed that. I've added all the credits. Thanks a lot for the advice π
Now it's good ππ
This is a great summary on Nginx. Now, I can set it up myself π. Thank you!
Pleasure is all mine!
Well, you are wrong about the definition. A web server doesn't pass a request to a backed server. That's what a proxy does.
A webserver serves content. That's it. It handles the request and returns it's own response, whereas a reverse proxy proxies the response.
Even though the most efficient part of Nginx is its web server capability, it's widely used as a proxy/reverse proxy.
However there are much more capable proxies out there (unless you're using the enterprise version): thinking mainly of Haproxy and Traefik.
How about you say something like: thank you for the post and all the work you have put into this. I have slightly other opinions about X and want to share my version...
Yours sounds way too rude!
You have a point, but I wouldn't want to ruin my reputation as a literal and figurative bastard. And I wouldn't want people to think I discriminate.
In the article, I mentioned that the web server passes/directs the requests to the backend server. In the same sense that it's handling the connection between the client and the backend server. However, I agree with your definition as well hence thank you for your opinion! I will certainly look into those proxies as well. π
Bit of hair splitting. Http reverse proxy IS a web server by definition of server as in TCP protocol node that acts as server in client-server connection.
HTTP reverse proxy is a server (as in general term). Web server serves web content (as in WWW, eg: html/js). Sure, it's hair splitting, but the difference can be important in certain contexts. Eg: HAProxy is a reverse proxy, but NOT a web server as it's unable to actually serve content (it can only proxy it).
IMHO it's important to know the tools and what they can do to choose what's right.
A proxy can be, for example, a HTTP proxy or a TCP proxy. Some proxies can do both, some can only do HTTP by design.
Thank you @ameia. Can you please write an article a pie isnβt ngoni minx as websocket reverse proxy!