Challenge Easy Submissions: 0/0
Fix a Broken Web Server Configuration
A web server will not start because three settings in its configuration file are wrong, and one required setting is missing entirely. Open the file in a terminal editor, correct it, and leave everything else intact.
A web server refuses to start. Its configuration lives at
/home/laborant/webserver/site.conf, and a colleague has left it in a state.
Three values are wrong and one required setting was never added. Everything else in the file, including the comments, must survive exactly as it is.
What needs to be true when you are done
| Setting | Required value |
|---|---|
listen_port | 8443 |
worker_processes | 4 |
ssl_enabled | true |
server_tokens | off (this line does not exist yet, add it) |
Every other line, including the comment block at the top, must be left alone.
Hint 1
Either editor will do. nano site.conf is the gentler option and lists its
shortcuts along the bottom. vim site.conf is the one that will be available on
every server you ever touch.
Hint 2, if vim has you trapped
Press Escape, then type :q! and press Enter. That leaves without saving
anything, so you can open the file again and start fresh.
To save and quit once you are happy: Escape, then :wq, then Enter.