/
Setup for basic webserver capability
Setup for basic webserver capability
- Locate the config file nginx.conf
- Comment out any server blocks and add the following blocks in
- 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; } }
Restart the server with the command
- nginx -s reload
Checking if service is running
tasklist /fi "imagename eq nginx.exe".