Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Locate the config file nginx.conf
  2. Comment out any server blocks and add the following blocks in

  3. Code Block
    languagetext
    titlenginx configuration
        # By default nginx will listen on port 80, to change it use the listen command
    server {
    		# This command will match the base (root) url of site
        	location / {
    			# where to find content when the url pattern is matched
            	root /pf/nginx/sels-sandpit/data/www;
    		}
    		# This command will match the base url/images/
        	location /images/ {
    			# where to find content when the url pattern is matched
            	root /pf/nginx/sels-sandpit/data;
    		}
        }


  4. Restart the server with the command

    1. nginx -s reload

Checking if service is running

tasklist /fi "imagename eq nginx.exe".