{{tag>nginx http}} ======Nginx====== On a simple system nginx can be started with ''/usr/sbin/nginx'' basically calling nginx executable with defaults. ++++nginx -h| nginx version: nginx/1.24.0 Usage: nginx [-?hvVtTq] [-s signal] [-p prefix] [-e filename] [-c filename] [-g directives] Options: -?,-h : this help -v : show version and exit -V : show version and configure options then exit -t : test configuration and exit -T : test configuration, dump it and exit -q : suppress non-error messages during configuration testing -s signal : send signal to a master process: stop, quit, reopen, reload -p prefix : set prefix path (default: /var/lib/nginx/) -e filename : set error log file (default: logs/error.log) -c filename : set configuration file (default: /etc/nginx/nginx.conf) -g directives : set global directives out of configuration file++++ References: *[[https://en.wikipedia.org|Wikipedia]]: *[[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes|List of HTTP status codes]] *[[https://www.freecodecamp.org/|Freecodcamp]]: *[[https://www.freecodecamp.org/news/the-nginx-handbook/|The NGINX Handbook – Learn NGINX for Beginners]] *[[https://www.digitalocean.com/|Digitalocean]]: *[[https://www.digitalocean.com/community/tutorials/understanding-nginx-server-and-location-block-selection-algorithms|Understanding Nginx Server and Location Block Selection Algorithms]] *[[https://www.digitalocean.com/community/tutorials/nginx-location-directive|Nginx location directive examples]] *[[https://www.digitalocean.com/community/questions/understanding-nginx-location-blocks-differences-use-cases-and-examples|Understanding Nginx Location Blocks: Differences, Use Cases, and Examples]] *[[https://www.digitalocean.com/community/tutorials/how-to-create-temporary-and-permanent-redirects-with-nginx|How To Create Temporary and Permanent Redirects with Nginx]] *[[https://www.digitalocean.com/community/tutorials/nginx-rewrite-url-rules|Nginx Rewrite URL Rules Examples]] *[[https://www.digitalocean.com/community/tools/nginx?domains.0.php.php=false&domains.0.routing.index=index.html&domains.0.routing.fallbackHtml=true&global.https.sslProfile=modern&global.https.ocspGoogle=false&global.https.ocspOpenDns=false&global.https.ocspQuad9=true|NGINXConfig]] The easiest way to configure a performant, secure, and stable NGINX server. *[[https://www.thegeekstuff.com/|The Geek Stuff]] *[[https://www.thegeekstuff.com/2017/05/nginx-location-examples/|13 Nginx Location Directive Examples including Regular Expression Modifiers]] *[[https://www.thegeekstuff.com/2017/08/nginx-rewrite-examples/|7 Nginx Rewrite Rule Examples with Reg-Ex and Flags]] *[[https://www.thegeekstuff.com/2013/12/nginx-php-fpm/|How to Configure Nginx to Execute PHP Using PHP-FPM]] *[[https://www.thegeekstuff.com/2014/03/php-custom-file-extension/|How to Add Custom File Extension for PHP in Apache and Nginx]] *[[https://www.thegeekstuff.com/2017/05/nginx-location-examples/#comments|13 Nginx Location Directive Examples including Regular Expression Modifiers]] <- tech_notes:regex|Back ^ tech_notes:index|Start page ^ tech_notes:iperf| Next->