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

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
[[w:Nginx]] [[web server]] that was written in 2004 as an alternative to popular [[Apache]] [[web server]].
 
[[w:Nginx]] [[web server]] that was written in 2004 as an alternative to popular [[Apache]] [[web server]].
  
Example of the '''simplest''' possible server configuration file, listening on default http port: 80
+
 
  
  
  
 
== Nginx Sample Configurations ==  
 
== Nginx Sample Configurations ==  
 +
Example of the '''simplest''' nginx possible configuration file, listening on default http port: 80.
 
<pre>/etc/nginx/conf.d/default.conf
 
<pre>/etc/nginx/conf.d/default.conf
 
server {
 
server {

Revision as of 07:33, 8 December 2019

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



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: