Difference between revisions of "Nginx"

From wikieduonline
Jump to navigation Jump to search
 
(13 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
* Configuration Files:  
 
* Configuration Files:  
 
:<code>[[/etc/nginx/nginx.conf]]</code>
 
:<code>[[/etc/nginx/nginx.conf]]</code>
:<code>/etc/nginx/conf.d/[[default.conf]]</code>
+
:<code>[[/etc/nginx/conf.d/]][[default.conf]]</code>
:<code>/etc/nginx/sites-enabled</code>
+
:<code>[[/etc/nginx/sites-enabled/]]</code>
 +
:<code>[[/etc/nginx/sites-enabled/default]]</code>
  
 
[[Nginx logs]] (See also [[Nginx change log]])
 
[[Nginx logs]] (See also [[Nginx change log]])
Line 20: Line 21:
 
  [[/var]]/www/html/
 
  [[/var]]/www/html/
  
[[apt install]] nginx
+
<code>[[apt install nginx]]</code>
  
 
[[Docker Nginx]] https://hub.docker.com/_/nginx
 
[[Docker Nginx]] https://hub.docker.com/_/nginx
Line 55: Line 56:
 
Other features include upgrading executable and configuration without client connections loss,<ref name="Controlling nginx" /> and a module-based architecture with both core<ref name="documentation" /> and third-party module support.<ref name="3rdPartyModules" />
 
Other features include upgrading executable and configuration without client connections loss,<ref name="Controlling nginx" /> and a module-based architecture with both core<ref name="documentation" /> and third-party module support.<ref name="3rdPartyModules" />
  
The paid [[Nginx]] Plus product includes additional features such as advanced [[load balancing]] and access to an expanded suite of metrics for performance monitoring.<ref name="Plus metrics" /><ref name="Plus load balancing" />
+
The paid [[Nginx Plus]] product includes additional features such as advanced [[load balancing]] and access to an expanded suite of metrics for performance monitoring.<ref name="Plus metrics" /><ref name="Plus load balancing" />
  
 
== Linux Nginx Operation on [[systemd]] distributions ==
 
== Linux Nginx Operation on [[systemd]] distributions ==
Line 72: Line 73:
  
 
Medium
 
Medium
* Use <code>[[prometheus]]-[[nginx]]-exporter</code> to collect Nginx metrics
+
* Use <code>[[prometheus-nginx-exporter]]</code> to collect Nginx metrics
 +
* Use [[metricbeat]] to collect metrics, see: <code>[[metricbeat modules list]]</code>
  
 
== Related terms ==
 
== Related terms ==
 
* [[NGINX Amplify]] [[SaaS]]
 
* [[NGINX Amplify]] [[SaaS]]
 +
* [[Subdomain redirection]]
 +
* <code>[[nginx_status]]</code>
 +
* [[F5 Inc]]
 +
* [[Kubernetes]]: [[Ingress-nginx]]
  
 
== See also ==
 
== See also ==
* {{certbot}}
+
* {{nginx.conf}}
 
* {{nginx}}
 
* {{nginx}}
* {{http}}
+
* {{web server}}
* {{proxy}}
+
 
* [[Nagios]]: <code>[[check_http]]</code>
+
 
  
 
[[Category:Web]]
 
[[Category:Web]]

Latest revision as of 12:06, 23 June 2023

wikipedia:Nginx web server that was written in 2004 as an alternative to popular Apache web server.

/etc/nginx/nginx.conf
/etc/nginx/conf.d/default.conf
/etc/nginx/sites-enabled/
/etc/nginx/sites-enabled/default

Nginx logs (See also Nginx change log)

journalctl -u nginx | grep emerg

Installation[edit]

Ubuntu

apt install nginx-light
systemctl status nginx
/var/www/html/

apt install nginx

Docker Nginx https://hub.docker.com/_/nginx

Nginx Sample Configurations[edit]

Features[edit]

Nginx can be deployed to serve dynamic HTTP content on the network using FastCGI, SCGI handlers for scripts, WSGI application servers or Phusion Passenger modules, and it can serve as a software load balancer.[1]

Nginx uses an asynchronous event-driven approach, rather than threads, to handle requests.[2] Nginx's modular event-driven architecture can provide more predictable performance under high loads.[3][4]

Nginx default configuration file is nginx.conf.[5]

HTTP proxy and Web server features[edit]

Mail proxy features[edit]

Other features include upgrading executable and configuration without client connections loss,[19] and a module-based architecture with both core[20] and third-party module support.[21]

The paid Nginx Plus product includes additional features such as advanced load balancing and access to an expanded suite of metrics for performance monitoring.[22][23]

Linux Nginx Operation on systemd distributions[edit]

  • Verify/Test Configuration: nginx -t
  • Status: systemctl status nginx
  • Start: systemctl start nginx
  • Stop: systemctl stop nginx
  • Restart: systemctl restart nginx (See also: nginx -t)

Activities[edit]

Medium

Related terms[edit]

See also[edit]

Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy.

Source: https://en.wikipedia.org/wiki/Nginx

  1. Cite error: Invalid <ref> tag; no text was provided for refs named Kleinman
  2. Cite error: Invalid <ref> tag; no text was provided for refs named Welcome
  3. Cite error: Invalid <ref> tag; no text was provided for refs named aosabook
  4. Cite error: Invalid <ref> tag; no text was provided for refs named Configuration
  5. Cite error: Invalid <ref> tag; no text was provided for refs named Beginner
  6. https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/
  7. https://serverfault.com/a/298401
  8. Cite error: Invalid <ref> tag; no text was provided for refs named Load balancing
  9. https://www.nginx.com/blog/nginx-1-13-10-grpc/
  10. http://nginx.org/en/docs/http/websocket.html
  11. https://nginx.org/en/docs/http/websocket.html
  12. https://www.nginx.com/blog/websocket-nginx/
  13. Cite error: Invalid <ref> tag; no text was provided for refs named 101 Switching Protocols
  14. Cite error: Invalid <ref> tag; no text was provided for refs named mdoc-intro
  15. Cite error: Invalid <ref> tag; no text was provided for refs named mdoc
  16. https://docs.nginx.com/nginx/admin-guide/mail-proxy/mail-proxy/
  17. Cite error: Invalid <ref> tag; no text was provided for refs named Authentication
  18. https://docs.nginx.com/nginx/admin-guide/mail-proxy/mail-proxy/#mail_auth
  19. Cite error: Invalid <ref> tag; no text was provided for refs named Controlling nginx
  20. Cite error: Invalid <ref> tag; no text was provided for refs named documentation
  21. Cite error: Invalid <ref> tag; no text was provided for refs named 3rdPartyModules
  22. Cite error: Invalid <ref> tag; no text was provided for refs named Plus metrics
  23. Cite error: Invalid <ref> tag; no text was provided for refs named Plus load balancing

Advertising: