Skip to main content

Linux Admin - Nginx Server Interview Question and Answers

What is Nginx Server?
Nginx (pronounced "engine x") is an open source web server and a reverse proxy server for HTTP, SMTP, POP3, and IMAP protocols, with a strong focus on high concurrency, performance and low memory usage.

What is the Best Usage of Ngins Server?
Nginx can deploy dynamic HTTP content on a network using FastCGI, SCGI handlers for scripts, WSGI application servers or Phusion Passenger module, and it can serve as a software load balancer.

What’s the Difference between Apache Web Server and Nginx?
Nginx uses an asynchronous event-driven approach to handling requests, instead of the Apache HTTP Server model that defaults to a threaded or process-oriented approach. Nginx's event-driven approach can provide more predictable performance under high loads.

Describe Some Best Features of Nginx?
Simultaneous Connections with low memory, Auto Indexing, Load Balancing, Reverse Proxy with Caching, Fault Tolerance

What is the Configuration File for Nginx and where it can be in UNIX like Systems?
Configuration file is named nginx.conf and placed in the directory;
 /usr/local/nginx/conf, /etc/nginx     or
/usr/local/etc/nginx          depends on distribution.

What is the Master and Worker Processes in Nginx Server?
The main purpose of the master process is to read and evaluate configuration, and maintain worker processes. Worker processes do actual processing of requests.

How to define Worker Processes?
The number of worker processes is defined in the configuration file and may be fixed for a given configuration or automatically adjusted to the number of available CPU cores

Where the Process ID does for Nginx Server is written? 
The process ID of the master process is written to the file /usr/local/nginx/logs/nginx.pid

What are the controls used in Nginx Server?
There are only few controls that are assosiated with Nginx Server and these are as below;
Nginx -s [stop | quit | reopen | reload]

How to reload configuration file of Nginx Server?
You can reload Nginx configuration file by running this command: nginx -s reload

How to reopening the log files in Nginx Server?
You can use nginx –s reopen

What is the purpose of –s with Nginx Server?
-s parameter is used to run the executable file of nginx.

How to add Modules in Nginx Server?
Nginx modules must be selected during compile, run-time selection of modules is not currently supported.

Define some of Nginx Architerture?
Here is brief nginx's architecture in diagram;


Please post your questions regarding nginx server to make this post most worthy and useful for future readers. Thanks

Comments

Post a Comment

Popular posts from this blog

Setting up per connection Limit Bandwidth on MikroTik Router

Generally, I do not prefer to add any unwanted restriction on the network user until its required due to some Administration reason. I know, there are more ways to tackle this setting up per connection Limit Bandwidth on MikroTik Router question comes into one’s mind but I resolve my concern while using MikroTik PCQs feature in MikroTik Queue Type and then calling this Queue Type to Simple Queue. There are more options for setting up per connection Limit Bandwidth on MikroTik Router but please share your concern to add anything else in this article. Let’s start to add our configurations; I am using WinBox for this Article but you can use anything you are convenient to use. Let’s start Step by Step procedure for Setting up per connection Limit Bandwidth on MikroTik Router, any version.  Setup Queue Types After Successful Login, click on Queues menu. Navigate to Queue Types and Press Add + (Plus Sign) to add a new Queue Type. Type a Name like in my scenario,...

DsReplicaGetInfo failed with status 8453 0x2105 on Windows Server 2008

I have two Domain Controller in my envorinment, Primary Domain Controller is Windows Server 2003 based and Additional domain controller is Windows Server 2008 based. When I Installed New 2008 ADC and after some time, when I check with repadmin /showreps found the error.... DsReplicaGetInfo() failed with status 8453 (0x2105):Replication access was denied. I really worried about Solutions: [ DsReplicaGetInfo failed with status 8453 ]

Event ID: 14158 Source: Microsoft Forefront TMG Firewall - How to change intra-array address in TMG 2010

In my organization, we are privious using Microsoft ISA Server 2006 ENT for proxy and gateway purpose. There are two website published on ISA 2006 Server and I install Microsoft TMG 2010, this morning. When I was making installations and configurations of my New Microsoft TMG 2010 Firewall Server with 192.168.10.17 but when I replace server with my existing Microsoft ISA Server 2006 and change Internal IP to my privous gateway IP, Microsoft TMG 2010 start showing events with ID 14158  and Configurations Error with "Description : The IP address specified for communication between this Forefront TMG computer (192.168.10.17) and other array members is not bound to a network adapter installed on this computer. The IP address specified for intra-array communication must be bound to a network adapter installed on the computer." Event ID 14158 Solution - 1: (Easy One)  Management Console : Start > All Programs > Microsoft Forefront TMG > Micr...