Hands-on task
This task is step 5 of the course “nginx basics”
nginx on a Non-Standard Port
Configure nginx to listen on port 8888 (instead of 80) and serve a page with the text PORT_8888. The page is already prepared at /var/www/p8888/index.html. Port 80 must be left free.
Reference:nginx
What you'll practise:
- nginx
- listen directive
- server block
- virtual hosts