• 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

ServerAlias not working

FrantišekH

New Pleskian
Until week ago, when I wanted to alias a domain to subdomain, I did this:
1) Add to the /var/www/vhosts/domain.com/subdomains/target.domain.com/conf/vhost.conf this line:
ServerAlias aliaseddomain.com

2) Reconfigured server by:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all

Then, when I went in browser to http://aliaseddomain.com, I got content of target.domain.com.


Now, these things do not work. No more aliasing. I see duplicate "conf" folder:
/var/www/vhosts/target.domain.com/conf

Even when I duplicate vhost.conf file here and reconfigure server, nothing happen, still no aliasing.

What is strange is that when I alias in the same way some subdomain, it works! For example when I alias this way:
ServerAlias subdomain.aliaseddomain.com
This works.

What is wrong? I did not make any changes to server. It is from v10.4.4 MU12, I suppose.
 
Does it work when you make alias aliaseddomain.com for target.domain.com via Plesk interface? Did you check apache logs regarding this issue?
 
Strange. Why you cannot use domain and make alias to subdomain? What is the business case for making it vice versa?

Apache error log is /var/log/httpd/error_log
 
Strange. Why you cannot use domain and make alias to subdomain? What is the business case for making it vice versa?

I do not understand your question.

I have a multiDrupal installation on subdomain, aliasing domains to this multiDrupal subdomain. This worked OK for months. Now, starting about one week ago, it stopped work. Why should I make things other way? I want to do that this way. It is possible, Plesk was able to do that, but not today. It is Plesk problem, as I suppose. I do not want to change standard usage because of Plesk is doing something wrong... I do not want to make a workaround.

Apache error log is /var/log/httpd/error_log
I do not know what exactly I am looking for in this log.
 
Does it mean that my server will be never more able to alias a domain to subdomain?

A lot of web pages stopped working due to this problem, so I have to solve this as soon as possible, please.
 
FrantišekH, sorry, but it is a forum, a place for discussions. It not a support helpdesk because we can't login on your server and investigate problem there. Only Support Team can do it. If you need urgent support - contact Paralles Support Team here - http://www.parallels.com/support And if they really find a bug, they send bugreport to developers.
 
Back
Top