InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
How To Reload Configuration File Of Nginx Server? |
|
Answer» You can RELOAD NGINX configuration FILE by running this COMMAND: nginx -s reload You can reload Nginx configuration file by running this command: nginx -s reload |
|
| 2. |
How To Reopening The Log Files In Nginx Server? |
|
Answer» You can use nginx –s reopen |
|
| 3. |
What Is The Difference Between Nginx And Apache? |
|
Answer» Nginx :
Apache:
Nginx : Apache: |
|
| 4. |
Define Some Special Features Of Nginx? |
|
Answer» Special features of the Nginx server includes :
Special features of the Nginx server includes : |
|
| 5. |
In Nginx How You Can Prevent Processing Requests With Undefined Server Names? |
|
Answer» A server that just drops the REQUESTS can be defined as Server A server that just drops the requests can be defined as Server |
|
| 6. |
Explain How Nginx Can Handle Http Requests? |
|
Answer» Nginx uses the reactor pattern. The MAIN event loop WAITS for the OS to signal a readiness event such that the DATA is accessible to read from a SOCKET, at which INSTANCE it is read into the buffer and processed. A Single thread can serve tens of thousands of simultaneous connections. Nginx uses the reactor pattern. The main event loop waits for the OS to signal a readiness event such that the data is accessible to read from a socket, at which instance it is read into the buffer and processed. A Single thread can serve tens of thousands of simultaneous connections. |
|
| 7. |
Explain How To Add Modules In Nginx Server? |
|
Answer» During the COMPILATION PROCESS, Nginx modules must be selected as such runtime SELECTION of modules is not SUPPORTED by Nginx. During the compilation process, Nginx modules must be selected as such runtime selection of modules is not supported by Nginx. |
|
| 8. |
Explain How You Can Get The Current Time In Nginx? |
|
Answer» To GET the CURRENT TIME in Nginx, you have to use VARIABLES from SSI module, $date_gmt and $date_local. Proxy_set_header THETIME $date_gmt; To get the current time in Nginx, you have to use variables from SSI module, $date_gmt and $date_local. Proxy_set_header THETIME $date_gmt; |
|
| 9. |
Explain Does Nginx Support Compress The Request To The Upstream? |
|
Answer» You can COMPRESS the request to the upstream by using the Nginx module GUNZIP. The gunzip module is a filter that decompresses responses with “CONTENT Encoding: gzip” for clients or SERVERS that do not support “gzip” encoding method. You can compress the request to the upstream by using the Nginx module gunzip. The gunzip module is a filter that decompresses responses with “Content Encoding: gzip” for clients or servers that do not support “gzip” encoding method. |
|
| 10. |
What Is The Use Of Stub_status And Sub_filter Directives? |
Answer»
|
|
| 11. |
What Is C10k Problem? |
|
Answer» C10K problem is REFERRED for the network socket unable to handle a LARGE NUMBER of CLIENT (10,000) at the same TIME. C10K problem is referred for the network socket unable to handle a large number of client (10,000) at the same time. |
|
| 12. |
What Is Ngx_http_upstream_module Is Used For? |
|
Answer» The ngx_http_upstream_module is used to define groups of SERVERS that can REFERENCE by the fastcgi PASS, proxy pass, uwsgi pass, memcached pass and SCGI pass directives. The ngx_http_upstream_module is used to define groups of servers that can reference by the fastcgi pass, proxy pass, uwsgi pass, memcached pass and scgi pass directives. |
|
| 13. |
In Nginx, Explain How You Can Keep Double Slashes In Urls? |
|
Answer» To keep DOUBLE slashes in URLs you have to use merge_slashes_off; To keep double slashes in URLs you have to use merge_slashes_off; |
|
| 14. |
Explain Is It Possible To Replace Nginx Errors Like 502 Error With 503? |
|
Answer» 502= BAD gateway Location / 502= Bad gateway Location / |
|
| 15. |
What Is The Master And Worker Processes In Nginx Server? |
Answer»
|
|
| 16. |
Mention What Is The Best Usage Of Nginx Server? |
|
Answer» The best usage of NGINX server is to deploy DYNAMIC HTTP content on a network with USING SCGI, WSGI APPLICATION servers, FastCGI handlers for SCRIPTS. It can also serve as a load balancer. The best usage of Nginx server is to deploy dynamic HTTP content on a network with using SCGI, WSGI application servers, FastCGI handlers for scripts. It can also serve as a load balancer. |
|
| 17. |
What Is The Advantage Of Using A “reverse Proxy Server”? |
|
Answer» The reverse proxy SERVER can hide the presence and characteristics of the origin server. It acts as an intermediate between internet CLOUD and web server. It is GOOD for security reason especially when you are using web hosting SERVICES. The reverse proxy server can hide the presence and characteristics of the origin server. It acts as an intermediate between internet cloud and web server. It is good for security reason especially when you are using web hosting services. |
|
| 18. |
How To Add Modules In Nginx Server? |
| Answer» | |
| 19. |
What Is The Purpose Of –s With Nginx Server? |
|
Answer» -s PARAMETER is used to RUN the EXECUTABLE file of nginx. -s parameter is used to run the executable file of nginx. |
|
| 20. |
What Are The Controls Used In Nginx Server? |
|
Answer» NGINX s [STOP | QUIT | REOPEN | RELOAD] Nginx s [stop | quit | reopen | reload] |
|
| 21. |
Where The Process Id Does For Nginx Server? |
|
Answer» The PROCESS ID of the MASTER process is WRITTEN in the FILE /usr/local/nginx/logs/nginx.pid The process ID of the master process is written in the file /usr/local/nginx/logs/nginx.pid |
|
| 22. |
Explain How You Can Start Nginx Through A Different Port Other Than 80? |
|
Answer» To start Nginx through a DIFFERENT port, you have to go to /etc/Nginx/sitesenabled/ and if this is the default FILE, then you have to OPEN file CALLED “default.” Edit the file and put the port you WANT To start Nginx through a different port, you have to go to /etc/Nginx/sitesenabled/ and if this is the default file, then you have to open file called “default.” Edit the file and put the port you want |
|
| 23. |
What Are All Feature Of Nginx Server? |
Answer»
|
|
| 24. |
What Are Features Of Nginx? |
Answer»
|
|
| 25. |
What Is The Difference Between Apache Web Server And Nginx? |
|
Answer» Nginx uses an asynchronous event approach to HANDLING MULTIPLE requests whereas Apache Web Server USE the synchronous. Nginx’s eventdriven approach can provide more predictable performance under high LOADS. In this WAY, Nginx is far better than Apache. Nginx uses an asynchronous event approach to handling multiple requests whereas Apache Web Server use the synchronous. Nginx’s eventdriven approach can provide more predictable performance under high loads. In this way, Nginx is far better than Apache. |
|
| 26. |
What Is The Best Usage Of Nginx Server? |
|
Answer» Nginx can deploy dynamic HTTP content on a network with using of SCGI,FASTCGI HANDLERS for scripts, WSGI application servers or Phusion Passenger module. Nginx can also SERVE as a LOAD balancer. Nginx can deploy dynamic HTTP content on a network with using of SCGI,FastCGI handlers for scripts, WSGI application servers or Phusion Passenger module. Nginx can also serve as a load balancer. |
|
| 28. |
What Is Official Website Of Nginx? |
|
Answer» nginx.org nginx.org |
|
| 30. |
Who Is Author Of Nginx? |
|
Answer» IGOR Sysoev Igor Sysoev |
|
| 31. |
What Is Nginx Server? |
|
Answer» Nginx 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. It is pronounced as “engine x”. Nginx 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. It is pronounced as “engine x”. |
|