• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Apache question

P

PedstersPlanet

Guest
Is it possible to make the ServerName to have a www. infront of the domain name by default, and just the domain name as the alias without the www.?
The reason is that some of my php scripts have keys, these need the www. infront of the ServerName.... I can manually edit the httpd.include file, but if Iadd a sub-domain in Plesk, it reverts back to the non www.......
Can this be done? In SSH?

Thanks
 
Is this the wrong forum, or does no-one know or understand my question. :)
 
The forum is correct, it is just that Plesk is setup to do it the other way around, there is no easy fix to do the reverse as you wish, other than manually editing the apache files as you have already done.

And as you have already found out, anytime there are domain/subdomain changes done in Plesk, the apache conf files are overwritten.
 
Thanks..Maybe this could be a future (root user) feature, per domain or globally - .....

Anyway, thanks again....
 
Back
Top