Hello
When Plesk 11.0.9 I had a domain with wildcards subdomains and all worked fine.
And the update to 11.5 came ...
Now I see that my blogs doesnot work (I need widcards because of them) : config file was changed by a misterious hand, and more: the wildcards does not work!!!. Well, I searched in forums and Google and I found two solutions
1. Add "ServerAlias *.domain.com" in vhost.conf of the main domain. Bad: some domains works and some one dissapeared, they drive to the main page of the domain, It did look like this domain didn't exist!!!!. So I delete the line (ServerAlias) in vhost of the main domain.
2. Second solution. http://kb.parallels.com/2239,
I try this solution and ... every subdomain of my domain drives to the main page of the domain!!!!. Well, I delete the new domain ... and Apache can't start.
httpd: Syntax error on line 211 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 70 of /etc/httpd/conf/plesk.conf.d/server.conf: Could not open configuration file /etc/httpd/conf/plesk.conf.d/ip_default/mydomain.com.
So I rebuild the symlink with an older conf file and restarted Apache. I tried this solution twice. But the result was the same (of course): subdomains dissapeared and error after delete *.mydomain.com
But, now it is working, how? why? I don't know but it is working. I looked for a config file whith a ServerAlias for *.mydomain.com, but I didn't find it. I would like to have an explanation, I need to know why it works
In other domain with just 2 subdomains this solution works fine.
The ssytem is Centos 5.0 under Plesk 11.5.30 and nginx ON
Regards.
When Plesk 11.0.9 I had a domain with wildcards subdomains and all worked fine.
And the update to 11.5 came ...
Now I see that my blogs doesnot work (I need widcards because of them) : config file was changed by a misterious hand, and more: the wildcards does not work!!!. Well, I searched in forums and Google and I found two solutions
1. Add "ServerAlias *.domain.com" in vhost.conf of the main domain. Bad: some domains works and some one dissapeared, they drive to the main page of the domain, It did look like this domain didn't exist!!!!. So I delete the line (ServerAlias) in vhost of the main domain.
2. Second solution. http://kb.parallels.com/2239,
I try this solution and ... every subdomain of my domain drives to the main page of the domain!!!!. Well, I delete the new domain ... and Apache can't start.
httpd: Syntax error on line 211 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 70 of /etc/httpd/conf/plesk.conf.d/server.conf: Could not open configuration file /etc/httpd/conf/plesk.conf.d/ip_default/mydomain.com.
So I rebuild the symlink with an older conf file and restarted Apache. I tried this solution twice. But the result was the same (of course): subdomains dissapeared and error after delete *.mydomain.com
But, now it is working, how? why? I don't know but it is working. I looked for a config file whith a ServerAlias for *.mydomain.com, but I didn't find it. I would like to have an explanation, I need to know why it works
In other domain with just 2 subdomains this solution works fine.
The ssytem is Centos 5.0 under Plesk 11.5.30 and nginx ON
Regards.
Last edited: