Difference between revisions of "/etc/nginx/nginx.conf"
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
== Linux Nginx Operation on [[systemd]] distributions == | == Linux Nginx Operation on [[systemd]] distributions == | ||
− | * Verify Configuration: <code>nginx -t</code> | + | * Verify/Test Configuration: <code>nginx -t</code> |
* Status: <code>[[systemctl]] status nginx</code> | * Status: <code>[[systemctl]] status nginx</code> | ||
* Start: <code>systemctl start nginx</code> | * Start: <code>systemctl start nginx</code> |
Revision as of 10:46, 12 December 2019
wikipedia:Nginx web server that was written in 2004 as an alternative to popular Apache web server.
- Official documentation: https://nginx.org/en/docs/
- Configuration Files:
/etc/nginx/nginx.conf
/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; }
Linux Nginx Operation on systemd distributions
- Verify/Test Configuration:
nginx -t
- Status:
systemctl status nginx
- Start:
systemctl start nginx
- Stop:
systemctl stop nginx
See also
Advertising: