I have sorted this much out:
I set my Listen directive in ports.conf to 127.0.0.1:8090. Doing that got me to serving a site at /var/www instead of /var/www/html.
I went to 000-enabled.conf, where I found a <virtualhost *:80>.
I made that
#<virtualhost *:80>
<virtualhost 127.0.0.1:8090>
Further in I found a line that I commented out to read
#ServerName www.example.com and I added:
ServerName localhost
Also within that <virtualhost> container, I saw a DocumentRoot specifying
/var/www/html.
In the Terminal I issued these commands:
sudo apache2ctl stop
sudo apache2ctl start
I visited localhost:8090 in my Firefox and saw the website I am hosting at /var/www/html.
Obviously I was not seeing this because of the port mismatch between Listen 8090 and <virtualhost *:80>. That was when I was serving out of /var/www when I ran apache2ctl after having changed the port specified in Listen between the time I served the website with a direct call to apache2 and the time I served it from apache2ctl.
Now I have a question:
sudo apache2ctl start
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' globally to suppress this message.
Here are my current thoughts:
In order to serve the site at localhost:80, and serve it on the mesh at example.local.mesh:8090, I need to globally set a Listen 127.0.0.1:80
ServerName localhost
DocumentRoot /var/www/html
and set all of these values in my 000-default.conf as
<virtualhost 10.0.19.15:8090> ("10.0.19.15" is the IP address assigned to my computer)
Listen 10.0.19.15:8090
ServerName example.local.mesh
DocumentRoot /var/www/html
The global setting could be in ports.conf
The virtualhost setting could be in 000-default.conf
Then I could host a second site at example.2.local.mesh
Create a copy of 000-default.conf and give it a new name, include it in the apache2.conf
<virtualhost 10.0.18.15:8090>
Listen 10.0.19.15:8090
ServerName example.2.local.mesh
DocumentRoot /var/www/html2
If I am right on that part, I would also resolve this error with my global settings in ports.conf or apache2.conf:
apache2ctl start
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message.
Right now I am hosting my site on localhost:8090 by setting Listen 127.0.0.1:8090 and setting <virtualhost 127.0.0.1:8090 in 000-defaults.conf. I added the ServerName 'localhost' in the virtualhost container which already contains the DocumentRoot.
Having the DocumentRoot specified there, behind a <virtualhost *:80> with a .
Having the DocumentRoot specified there, behind a <virtualhost *:80> with a specified Listen on port 8090 resulted in my server giving me a /var/www DocumentRoot.
Now that I've written this up here, time to put it in play and see what happens.