Nginx Interview Questions For Freshers & Experienced

  • Question 1) What is Nginx?
  • Question 2) Enlist some features of Nginx?
  • Question 3) Nginx is written in Which Programming language?
  • Question 4) Is Nginx better than Apache?
  • Question 5) What are directive in Nginx? List few.
  • Question 6) What is Nginx reverse proxy?
  • Question 7) How to install Nginx on ubuntu?
  • Question 8) What is C10K problem?
  • Question 9) What is use of ngx_http_upstream_module?
  • Question 10) What is use of sub_filter directives in Nginx?
  • Sharad Jaiswal
  • 09th Jan, 2020
  • 1014 Followers

Nginx Interview Questions
Updated ON

09th Jan, 2020

No. of Questions

10

Posted In

Operating Systems

Author

Sharad Jaiswal

Key Features of Nginx

Below are few major features of Nginx

Supports Reverse proxy with caching

Easy Load balancing

FastCGI support

Support for TLS/SSL with SNI

Flexible configuration

Multiple Mail proxy server support

Low memory footprint

FLV and MP4 streaming

Embedded Perl

Nginx Interview Questions

Q1. What is Nginx?

NGINX is open-source software for web serving, reverse proxying, caching, load balancing, media streaming, and more. NGINX is a high‑performance, highly scalable, highly available web server, reverse proxy server, and web accelerator (combining the features of an HTTP load balancer, content cache, and more). NGINX offers a highly scalable architecture that is very different from that of Apache (and many other open-source and commercial products in the same category). NGINX can also function as a proxy server for email (IMAP, POP3, and SMTP) and a reverse proxy and load balancer for HTTP, TCP, and UDP servers.

Source: nginx.com

Q2. Enlist some features of Nginx?

Below are some important features of Nginx

  • Supports Reverse proxy with caching
  • Load balancing
  • TLS/SSL with SNI
  • Mail Proxy Server
  • Tested OS
  • Fault tolerance
  • Name-based and IP-based virtual servers

Q3. Nginx is written in Which Programming language?

The Complete Source code of Nginx server is written in the C programming language.

Q4. Is Nginx better than Apache?

In term of speed, serving static content,number of concurrent connections, OS support, security, and flexibility Yes Nginx much better than Apache.

Q5. What are directive in Nginx? List few.

Directives are configuration options in Nginx. Each option has name and parameters and must end with a semicolon (;).Directives are used to control Modules and divided into simple directives and block directives.

Below is the list of few Nginx Directives:

  • absolute_redirect
  • add_before_body
  • auth_basic
  • auth_jwt
  • auth_http_timeout
  • debug_connection
  • fastcgi_cache_key

View: Complete Nginx Directives Lists

Q6. What is Nginx reverse proxy?

A reverse proxy is an intermediary proxy service that takes a client request, passes it on to one or more servers, and subsequently delivers the server's response to the client. A common reverse proxy configuring is to put Nginx in front of an Apache webserver.

Source: Setting up an Nginx Reverse Proxy

Q7. How to install Nginx on ubuntu?

Nginx can be installed using the apt packaging system.

$ Sudo apt install Nginx //this command is used to install Nginx.

To enable the Nginx, use the following command.

$ sudo ufw allow ‘Nginx HTTP’

Q8. What is C10K problem?

C10K Problem refers to the problem of optimizing network sockets to handle a large number of clients at the same time. It is a numeronym for concurrently handling 10,000 connections.

Q9. What is use of ngx_http_upstream_module?

The ngx_http_upstream_module module is used to define groups of servers that can be referenced by the proxy_pass, fastcgi_pass, uwsgi_pass, scgi_pass, memcached_pass, and grpc_pass directives.

Q10. What is use of sub_filter directives in Nginx?

The Sub_filter directives are used to search and replace the content in response and a quick fix of stale date.

About Author :

  • Author of Nginx Interview Questions

    Sharad Jaiswal

    Sharad Jaiswal is Sr. Web Developer from Noida area. He have rich experience in PHP, Angular Js, React, javascript and Node .If you any query or project on these programming you can drop your enquiry in comment section.

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.