Hi Peter,

If you only want to build a static site (ie. just HTML, CSS, JS etc; no server-side scripting) then you don't need to install and configure something like Apache to test it out. You could just open the files you're working on straight from the disk. Or if you want to test with server you can use one of the super simple servers designed for testing. There is one built in to Python. Simply run "python -m http.server" in your project directory.

You could also consider using a static site builder like Hugo or Jekyll which can build your site using templates. These have their own test servers built in.


-- George 



On Sat, 1 Jun 2024, 16:02 Peter Humphrey, <peter@prh.myzen.co.uk> wrote:
Hello list,

It seems to be time again to see if I can set up a local web server*. I want
to build a site for myself, and one way is to work it up on my own machine,
then transfer it to a hosting service when it's "ready".

The first problem I face is in choosing a server: Apache is huge and complex,
and NGINX is foreign to me, so what should I do?

The Gentoo Apache wiki is unhelpful. It assumes that the reader is experienced
in running web servers, and just points out the way things are done differently
here. Then it occupies several pages with the entire configuration file calling
chain, every line of every file being shown; what is the point of that? It only
succeeds in sowing confusion. Well, it does in me, anyway; I'm no wiser at the
end than the beginning.

It even trips up right at the start, showing what to set for each MPM, but
without explaining why I should choose any particular one. The wiki seems to
have been written by a programmer, not a user (this is a woefully common
shortcoming in software documents).

In short, it's useless.

Is there a more accessible guide anywhere? Google hasn't found anything for
me.

*  I've asked this here before, but never got anywhere with it. I did build a
130-page site for the local choir years ago, in pure HTML and CSS, but that
experience has evaporated.

--
Regards,
Peter.