Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Current »

  1. Locate the config file nginx.conf
  2. Comment out any server blocks and add the following blocks in
  3. nginx 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


  • No labels