sudo hostnamectl set-hostname VA7FI-Linux
* Install Apache:
sudo aptitude install curl apache2
ln -s /var/www/html ~/
* Change the ownership of everything in that folder so you (the user) and the web process can access them easily. My username is ''aredn'', which you should replace with your own username.
sudo chown aredn:www-data -R /var/www/html/
* Change the permissions:
sudo chmod 770 -R /var/www/html/
In general, those permissions are ok, but depending on what you're running as a web service, they could be too permissive. That being said, since you're not exposing your site to the open internet, you're probably ok with those.
==== The index.html File ====
You're now ready to write our fist webpage! You can delete the ''index.html'' file that's already in the webfolder and create one of your own. There's a simple [[https://html-online.com/editor/ |online html editor]] that's very convenient to use for small pages: simply edit the text you want on the left, and copy the html code on the right into your ''index.html'' file.
Here's [[aredn>http://va7fi-linux.local.mesh/ |VA7FI's page]] as an example:
This site is only accessible on the West Coast AREDN network via VA7FI-HAPac3-1. This node is connected to:
This server hosts the following services:
Patrick, va7fi@rbox.me
This site is only accessible on the West Coast AREDN network via VA7FI-HAPac3-1. This node is connected to:
This server hosts the following services:
Patrick, va7fi@rbox.me
ifconfig | grep 'inet '
===== AREDN Node Configuration =====
Now that the site is working locally, we can share it on AREDN.
From the ''Port Forwarding, DHCP, ans Services'' page:
- Setup a DHCP Address Reservation for the Linux computer
- Advertise the services
- Forward WAN port 8080 to LAN port 80
- Don't for get to