Difference between revisions of "/etc/nginx/nginx.conf"

From wikieduonline
Jump to navigation Jump to search
(→‎Activities: * Track Application Response time in Nginx * Enable status page in Nginx[ to get information about active connections and other parameters: https://easyengine.io/tutorials/nginx/status-page/)
Line 26: Line 26:
 
== Activities ==
 
== Activities ==
 
* [[Track Application Response time in Nginx]]
 
* [[Track Application Response time in Nginx]]
* Enable status page in [[Nginx]][ to get information about active connections and other parameters: https://easyengine.io/tutorials/nginx/status-page/
+
* Enable status page in [[Nginx]] to get information about active connections and other parameters: https://easyengine.io/tutorials/nginx/status-page/ and test it: <code>curl http://127.0.0.1/nginx_status</code>
  
 
== See also ==
 
== See also ==

Revision as of 13:39, 12 December 2019

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
  • Error log file: /var/log/nginx/error.log
  • Access log file: /var/log/nginx/access.log

Nginx Sample Configurations

Example of the simplest nginx possible configuration file, listening on default http port: 80.

/etc/nginx/conf.d/default.conf
server {
    listen 80;
    root /path/to/your/html_files;
}


Linux Nginx Operation on systemd distributions

  • Verify/Test Configuration: nginx -t
  • Status: systemctl status nginx
  • Start: systemctl start nginx
  • Stop: systemctl stop nginx

Activities

See also

Advertising: