diff --git a/docs/07.md b/docs/07.md index 06eaf82..9b6d33a 100644 --- a/docs/07.md +++ b/docs/07.md @@ -30,7 +30,7 @@ If you’re a website professional then you might do things slightly differently * In `/etc/apache2/apache2.conf` there's the line with the text: "IncludeOptional conf-enabled/\*.conf". This tells Apache that the \*.conf files in the subdirectory *conf-enabled* should be merged in with those from `/etc/apache2/apache2.conf` at load. This approach of lots of small specific config files is common. * If you're familiar with configuring web servers, then go crazy, setup some virtual hosts, or add in some mods etc. * The location of the default webpage is defined by the *DocumentRoot* parameter in the file `/etc/apache2/sites-enabled/000-default.conf`. -* Use `less` or `vim` to view the code of the default page - normally at `/var/www/html/index.html`. This uses fairly complex modern web design - so you might like to browse to http://165.227.92.20/sample where you'll see a much simpler page. Use View Source in your browser to see the code of this, copy it, and then, in your ssh session `sudo vim /var/www/html/index.html` to first delete the existing content, then paste in this simple example - and then edit to your own taste. View the result with your workstation browser by again going to _http://[external IP of your server]_ +* Use `less` or `vim` to view the code of the default page - normally at `/var/www/html/index.html`. This uses fairly complex modern web design - so you might like to browse to [http://165.227.92.20/sample](http://165.227.92.20/sample) where you'll see a much simpler page. Use View Source in your browser to see the code of this, copy it, and then, in your ssh session `sudo vim /var/www/html/index.html` to first delete the existing content, then paste in this simple example - and then edit to your own taste. View the result with your workstation browser by again going to _http://[external IP of your server]_ * As with most Linux services, Apache keeps its logs under the `/var/log` directory - look at the logs in `/var/log/apache2` - in the `access.log` file you should be able to see your session from when you browsed to the test page. Notice that there's an overwhelming amount of detail - this is typical, but in a later lesson you'll learn how to filter out just what you want. Notice the `error.log` file too - hopefully this one will be empty! ### Note for AWS/Azure/GCP users