On Fri, Mar 7, 2025 at 8:47 PM Van Snyder <van.sny...@sbcglobal.net> wrote: > > On Fri, 2025-03-07 at 14:29 -0800, Van Snyder wrote: > > On Fri, 2025-03-07 at 20:44 +0100, to...@tuxteam.de wrote: > > Somewhere there should be a DocumentRoot which you might want to > adjust accordingly. > > > There is no DocumentRoot setting in the /etc/apache2/apache2.conf on either > machine. One works, the other doesn't. > > On both machines, ServerRoot is commented out. > > > The DocumentRoot setting is, "conveniently" not in /etc/apache2/apache2.conf. > Instead, it's "conveniently" in > /etc/apache2/a/etc/apache2/sites-available/000-default.conf — apparently so > that different ports, say 80 and 8080, can look at different file systems. > > Changing DocumentRoot there from /var/www to /opt/www makes my server work.
You should probably change that back. That will allow an `apt upgrade` (and friends) to replace it with the distro or maintainer version of the file. Then, run `a2dissite 000-default` to disable the default site. That removes the symlink from sites-enabled to 000-default. Then, create a new site with the expected document root. Call it mysite.conf, and place it in sites-available. Then, run `a2ensite mysite.conf` to enable the site. That creates a symlink for mysite.conf in sites-enabled. Finally, run `apache2 reload` to reload things. And all of this is prefaced with "if I recall correctly...". I don't have a Debian machine in front of me to test on. Jeff