• 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

PLESK 9.5.2 on Cent OS 5.x DNS CNAME not working

bskrakes

Basic Pleskian
Hi there,

So I recently added a new client to my server and configured the clients domain... when creating the domain the PLESK system didn't configure a CNAME for www.abcdomain.com:


But it did configure CNAME records for:

HOST RECORD TYPE VALUE
ftp.abcdomain.com CNAME abcdomain.com
webmail.abcdomain.com CNAME abcdomain.com

So I added the CNAME record www<domain> to my DNS template for the server, since it wasn't there and then manually added it the new client as well. Once the DNS propagated I was unable to access the proper page via http://www.abcdomain.com but I was able to access it through http://abcdomain.com.

I have read a few posts about changing the vhosts conf file but that won't work for this version of PLESK (and some previous ones) as the path and file/config structure appears to be different.

/var/www/vhosts/abcdomain.com

root@SERVER]# ls -l
total 48
drwxr-x--- 5 user group 4096 May 21 10:12 anon_ftp
drwxr-xr-x 2 user group 4096 May 21 10:12 bin
drwxr-x--- 3 user group 4096 May 21 10:12 cgi-bin
drwxr-x--- 2 user group 4096 May 21 10:12 conf
drwxr-xr-x 2 user group 4096 May 21 10:12 error_docs
drwxr-x--- 6 user group 4096 May 21 10:17 httpdocs
drwxr-x--- 7 user group 4096 May 21 10:12 httpsdocs
drwxr-x--- 2 user group 4096 May 21 10:12 pd
drwx------ 2 user group 4096 May 21 10:12 private
dr-xr-x--- 7 user group 4096 May 21 10:12 statistics
drwxr-xr-x 2 user group 4096 May 21 10:12 subdomains
drwxr-xr-x 2 user group 4096 May 21 10:12 web_users

Inside of the conf directory there is this file: httpd.include it has not DNS settings from what I can tell.

I have tried deleting the domain from the clients account and recreating the domain but that has not helped. I haven't tried removing the clients account completely but I suppose I could try... before I do that I'd like to hear some other suggestions and determine why PLESK isn't properly accepting the creation of the CNAME record.

It may also be worth noting that I was running PLESK 9.2.x and had the same issue... so I then upgraded to 9.3.x and still had the same issue... now I am on 9.5.2 and it still doesn't seem to take the DNS record properly.

Thank you in advance!
 
So I am still having this problem... lets forget that I mentioned it didn't work on older versions of Plesk. Does anyone know how to fix it for the current version of Plesk 9.5.2?

Thank you,
 
Alright I seemed to have fixed my problem (no replies, seriously?!?!?!)... Anyway I tried to the following:

1) delete & recreate the domain
2) delete & recreate the client >> domain
3) obviously I played around with DNS records without success
4) tried one of the posts found on this forum, relizing all I needed to do was refresh the virtual host (vhost)
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=foo.com
By running the above command on my domain, the CNAME record worked. I did not have to create a vhost.conf file with the server alias inside of it, some people have suggested that this is work around as well: (var/www/vhosts/foo.com/conf/vhost.conf)
ServerAlias 123.foo.com
"Refreshing" the vhost by the reconfigure command worked.

If anyone else has the same problem I'd like to hear from them, perhaps my method will work for you.

Thanks,
 
Back
Top