The main conf is: /etc/apache2/apache2.conf
Changing the “servername” there won’t affect any of the sites nor your Google ratings.
[You could use “localhost” there without any issue]
[each vhost has its’ own “servername” directive]
[this change should not affect your email system]
You could also include a directive “default” in the vhost for “www.kirkbymicrowave.co.uk” ServerName _default_
I’m thinking it may be more of an alphabetized conf file ordering…
Please show: ls -l /etc/apache2/sites-enabled/
The "first file" in that folder becomes the default:
when no default is explicitly defined.
Not 100% certain how to explicitly define one...
The simplest solution is to chose the file that contains the servername you want to be the default and rename the link to that file as something that would come alphabetically before 000-default.conf
[keeping the .conf ending]
If I put two virtual hosts in the one certificate, how does one reduce the number of virtual hosts? I just assumed two of them would both use the one certificate. Can one virtual host be used for both the www and the non-www ServerName?
If you use two "servername" directives in one file.
ServerName domain.com
ServerName www.domain.com
[both in one file]
Then get one cert with both names in it.
You can do that for all 4 names if you like
Or for the 3 names you don't want to use. And send those to the one name you do want.
to monitor the server. There are no high-traffic sites on there. The load average is rarely as high as 0.05. I very much doubt that the memory is being stressed too much, but it is a virtual host, which if memory serves me correctly has 1 GB RAM.
is configured to check a few websites once/minute. Most of the activity on the server is responding to https://www.downnotifier.com/?ref=653838 None of the sites have much traffic.
to check the site is responding correctly. That also checks for SSL certificates about for expire. Recently, they have in beta a “metric” which allows one to grab just about anything about the server that one can write a scrpt to produce. They have an example of a load average script, so I actually run that. Here’s a graph. Also a capture from “top” as you asked.
I’ve convinced any issues are not a result of an overloaded server.
Since 95% of my companies customers are outside the UK, I am actually regretting getting a UK domain name. I might transition to the website to a .com later, but I know there can be issues doing that in a way to not upset Mr. Google or Mrs. Customers.
I think I will leave this issue for now. Once thing I do know, is that I’m paying £10/month for this VPS with one CPU. The same company are now offering 2 CPUs, at £5/month for 6 months, then £10/month. I’m seriously thinking of just getting a server from them hosted in the USA, which will save me some money, give me an extra CPU, and also get the server where more of my customers are.
Of course, it takes time to set up new servers, and at the moment the main company website is working fine. There have been 39 outages in 2019 - some my fault, but the overall uptime is 99.99%, so I don’t think it’s working too badly.
I would like to resolve this SSL / redirect related issues, but at the minute, it is not the highest priority thing to do. Getting my company accounts in on time is a bit more important than worrying out how to react if someone misspells the domain name.
I don’t think there’s anything much wrong with the hosting - a 99.99% uptime is not bad for a small company where there’s no dedicated IT department. I am the director, loo cleaner, chief scientist, webmaster…etc.
But I am not keen on the fact that the same hosting company is offering new customers a better specification for less cost. That is what is partially tempting me to change.
I realise that there’s no need to change domain name just to change the hosting. But I think having a .com would be more suitable for my customer base (mainly USA), and would do better on Google.com if it was hosted in the USA with a .com domain name.
I would need to find the best way to do a transition of domain name.
My initial thought was to cope the site, change references to.com, but hide from Google, but check uptime over a month to ensure that the server is stable. Then perform a perform a permanent redirect from.co.uk to .com.
I expect that I find information on the web about the best way to do it.
All references within a site should exclude the name [and be self-referencing].
So (for example) anything explicit:
<img src="http://my.domain/image.jpg">
becomes just:
<img src="/image.jpg">