Hi,
I've just done a long-overdue refresh on my VPS. One of the packages
upgraded was Apache, to version 2.4-25. It appears the syntax of the
site conf files has changed since the last version I was running and all
is not totally "well on the farm."
I have two IP addresses bound to the server.
I am trying to achieve:
* Running a number of different web sites on domains I own, each with
its own folder on the filesystem.
* These websites are spread across HTTP a (80) and HTTPS (443) on both
IP addresses.
* I want separate conf files for each site to make taking them up and
down and reconfiguring easy.
* I want Apache to recognise which site to serve from the URL, rather
than the IP address.
* I want to be able to serve different sites from different folders on
some subdomains e.g.
example.com serves one site and
mail.example.com serves another.
I've searched online and most of the examples I have found seem to work
on older versions of Apache, not on 2.4. Right now, it's "sort of"
working with most things OK but some URLs serving the wrong site so I'm
pretty sure I've got something wrong.
I would be really grateful if someone who is competent with Apache would
give me an example of how I should be crafting my conf files to make
sure everything is being done properly.
Many thanks,
Paul.