My example.com and www.example.com are separate websites. So far, I made that work by putting both of them in folders in public_html, and using .htaccess to direct the flow.
But now I need to use separate php versions for each, so I cannot keep them together anymore.
The problem is I do not manage to create a separate www subdomain. That is to say, I can create it, but it never shows up, because DirectAdmin puts the following very near the start:
Any subdomains I create appear below this, so they don't have any effect if www.example.com is mentioned there.
So what I "simply" want to do is remove the www.example.com from that root website config, and only keep example.com. I'm putting "simply" in quotes because I have not managed to do this in several hours, so that's why I'm here... ?
I did find "customizing httpd", but that sounds like taking over control for the complete httpd, whereas I only need to customize the VirtualHost section for this domain. I do have the option to make this a rule for all domains, and then just add ServerAlias www.example.com where needed, if that is easier to achieve. (I use this server only for my own domains.)
How to customize this domain name's VirtualHost (not by adding but removing a piece), or alternatively to change the template for all domains so that they no longer force-include www?
But now I need to use separate php versions for each, so I cannot keep them together anymore.
The problem is I do not manage to create a separate www subdomain. That is to say, I can create it, but it never shows up, because DirectAdmin puts the following very near the start:
ServerName www.example.com
ServerAlias www.example.com example.com
Any subdomains I create appear below this, so they don't have any effect if www.example.com is mentioned there.
So what I "simply" want to do is remove the www.example.com from that root website config, and only keep example.com. I'm putting "simply" in quotes because I have not managed to do this in several hours, so that's why I'm here... ?
I did find "customizing httpd", but that sounds like taking over control for the complete httpd, whereas I only need to customize the VirtualHost section for this domain. I do have the option to make this a rule for all domains, and then just add ServerAlias www.example.com where needed, if that is easier to achieve. (I use this server only for my own domains.)
How to customize this domain name's VirtualHost (not by adding but removing a piece), or alternatively to change the template for all domains so that they no longer force-include www?