Implementing a web server service and security settings
In this particular recipe, the idea is to use a small shell
script to help us configure an already installed web server. We are going to enable our script to change where the web pages served by the server are located, but you will quickly see that changing any other option is easily added to this script.
By using this script, all users would have to do to get the system running is this:
- Install the web server
- Run the script to change where website files are located
As always, the main problem when preparing something that will be a simple operation for the user is understanding and hiding all the complexity while making it reasonably easy for the administrator to add new features. How do we do this? Read on.
Getting ready
This is our scenario:
A user has installed an Apache web server on their Ubuntu machine. They want to change the location of files that make up their website.
Before we...