• 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

Enabling support for wildcard subdomains - Having trouble...

K

kab012345

Guest
Hello,

I am trying to enable support for wildcard subdomains for my domain on my VPS, and for that, I need to alter the httpd.conf file. I already added the A record needed for the wildcard subdomains support, but I am having trouble with the last step. I don't know how to edit the http.conf properly through SSH, and I searched around and saw that I will also need to create a vhost.conf and vhost_ssl.conf file for this to work since PLESK automatically overwrites any changes I would have made. Could someone please, please help me to do this correctly, maybe with some instructions if it isn't too much trouble? Or even link me to the manual article on this? The only manual I can find on the website is for PLESK 7.1 RELOADED.

All I need to do is change the following, where domain.com is my domain:
Code:
ServerAlias www.domain.com domain.com
to
Code:
ServerAlias www.domain.com domain.com *.domain.com



I asked my host about this but they do not provide technical support, so if you know how I could do all of this the right way SSH (or any other way for that fact since I keep getting the Access denied error and I am on my "root@domain ~" account...) , I would really appreciate it! :) Thank you to anyone in advance.
 
Thanks for the reply. I got one of my admins to do it, but thanks for the article link as well. I'll keep this for future reference. :)
 
Back
Top