• ranzispa@mander.xyz
      link
      fedilink
      arrow-up
      1
      ·
      9 hours ago

      It’s been a while I don’t work on webservers, but any of the ones I worked on, be it Apache or Nginx, had all their domains in /var/www. I would imagine /srv to be a much better option, but I’ve never seen it done that way.

      • Laser@feddit.org
        link
        fedilink
        arrow-up
        1
        ·
        8 hours ago

        Well, at least for nginx, you can specify the root (or alias if required) directive; to me, it makes very little sense to rely on defaults, you need to specify your servers / virtual hosts anyways, might as well make the configuration more self-documenting…