/etc/nginx/nginx.conf

From wikieduonline
Revision as of 07:30, 8 December 2019 by Welcome (talk | contribs) (Creating basic nginx configuration files)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

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

Advertising: