Skip to content

Commit

Permalink
Issue #58 - thanks Dtrizzle!
Browse files Browse the repository at this point in the history
  • Loading branch information
livialima committed Jul 21, 2024
1 parent f7df98e commit 2526595
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/07.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ If you’re a website professional then you might do things slightly differently
* 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
### Note for AWS/Azure/GCP/OCI users

Don't forget to add port 80 to your instance security group to allow inbound traffic to your server.

* [AWS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/working-with-security-groups.html#adding-security-group-rule)
* [Azure](https://learn.microsoft.com/en-us/answers/questions/1190066/how-can-i-open-a-port-in-azure-so-that-a-constant)
* [GCP](https://cloud.google.com/firewall/docs/using-firewalls#listing-rules-vm)
* [Oracle Cloud Infrastructure](https://docs.oracle.com/en-us/iaas/developer-tutorials/tutorials/apache-on-oracle-linux/01-summary.htm#add-ingress-rules)

## POSTING YOUR PROGRESS

Expand Down

0 comments on commit 2526595

Please sign in to comment.