Web Services On AWS
Eric Brauer
Make Sure That You Can SSH to ww
Still
(Did you make iptables rules persistent?)
You’ve already had some experience running a Web Server in OPS245. We are using Apache once again in OPS345.
httpd
systemctl
commands!When we are working in The Cloud©, this is the way that we abstract file systems.
This idea of breaking things down into microservices has gained a lot of traction. So our drives are separated from our instances, databases are separated from our drives, and so on.
Why is this useful?
Fortunately for us, we already have some experience dealing with drives in this manner. Recall what you learned in OPS245 in regards to LVM.
Logical Volume Management gives us the flexibility we need to solve problems (like running out of drive space) on the fly, with minimal downtime.
links
links
is a terminal-based web browser.localhost
will point to your local machine, it lets us
test HTML/CSS/PHP/Javascript when it’s not actually on the Web yet.Did you consider it strange when we set up port forwarding to
ww
even though it already had a public IP address? Here is
where we remove that address and make sure everything will continue
working.
We want our traffic (SSH and Web) to be going through
router
. Unfortunately we can’t remove a public IP address,
so we need to remove the ww
instance.
www
. Repetition
is the mother of all learning!/var/www
, since that is considered independent
of the instance!ww
is gone and www
is located at that
IP address.ww
entry from your
known_hosts
file (on your Linux Mint VM) and try
again.Lots of things need to be working to complete the lab. A checklist:
iptables
Rule to allow samehttpd
service is runningwww-data
mounted correctlyphp
installedIn addition, when instances reboot there’s a chance that things break.
iptables
rules persistent?www-data
mount automatically on startup?httpd
service enabled?Recall that Elastic IPs will cost you money when they are not in use.
We needed temporary-ip
to install stuff on
www
, but that’s not complete.