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

From wikieduonline
Jump to navigation Jump to search
(* Official documentation: https://nginx.org/en/docs/ * Configuration Files: :<code>/etc/nginx/nginx.conf</code> :Additional Configuration file: <code>/etc/nginx/conf.d/default.conf</code> * Error log file: <code>/var/log/nginx/error.log</code>)
Line 2: Line 2:
  
  
 
+
* Official documentation: https://nginx.org/en/docs/
 +
* Configuration Files:
 +
:<code>/etc/nginx/nginx.conf</code>
 +
:Additional Configuration file: <code>/etc/nginx/conf.d/default.conf</code>
 +
* Error log file: <code>/var/log/nginx/error.log</code>
  
  

Revision as of 07:34, 8 December 2019

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


/etc/nginx/nginx.conf
Additional Configuration file: /etc/nginx/conf.d/default.conf
  • Error log file: /var/log/nginx/error.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;
}

Advertising: