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.
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.