We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
ServerAlias does not work
ServerAlias does not work
Hello!
Recently I upgraded the code of the portal and added real multilingual support. The best solution I found is a languages on subdomains, pointing to the same file structure and the same scripts to avoid unnecessary copies. I just ordered a new VPS, installed VESTA, added mysql replication.
So, I added my domain, let it be MYDOMAIN.ua, and automatically I got the alias http://www.MYDOMAIN.ua. I added en.MYDOMAIN.ua and pl.MYDOMAIN.ua to the same field immediately (it seems they are separated with a line break)
but I found that only MYDOMAIN.ua and http://www.MYDOMAIN.ua is working, en and pl shows the
I checked the web server configs:
/home/admin/conf/web/apache2.conf
http://en.MYDOMAIN.ua:8080/index.php and I got standart
Recently I upgraded the code of the portal and added real multilingual support. The best solution I found is a languages on subdomains, pointing to the same file structure and the same scripts to avoid unnecessary copies. I just ordered a new VPS, installed VESTA, added mysql replication.
So, I added my domain, let it be MYDOMAIN.ua, and automatically I got the alias http://www.MYDOMAIN.ua. I added en.MYDOMAIN.ua and pl.MYDOMAIN.ua to the same field immediately (it seems they are separated with a line break)
but I found that only MYDOMAIN.ua and http://www.MYDOMAIN.ua is working, en and pl shows the
page. I thought something is wrong and added one more, ua.MYDOMAIN.ua: the same result for all 3 subdomains.default.domain
Powered by VESTA
I checked the web server configs:
/home/admin/conf/web/apache2.conf
/home/admin/conf/web/nginx.confServerName MYDOMAIN.ua
ServerAlias http://www.MYDOMAIN.ua en.MYDOMAIN.ua pl.MYDOMAIN.ua ua.MYDOMAIN.ua
I tried to connect to the backend directly, i.e.server_name MYDOMAIN.ua http://www.MYDOMAIN.ua en.MYDOMAIN.ua pl.MYDOMAIN.ua ua.MYDOMAIN.ua;
http://en.MYDOMAIN.ua:8080/index.php and I got standart
Everything seems to be OK in config, so what is the problem?The requested URL /index.php was not found on this server. Apache/2.2.22 (Debian) Server at en.MYDOMAIN.ua Port 8080
Re: ServerAlias does not work
Sorry, I wrote
Now I found that only first ServerAlias works, i.e. I changed it to
but I meanServerAlias http://www.MYDOMAIN.ua en.MYDOMAIN.ua pl.MYDOMAIN.ua ua.MYDOMAIN.ua
This is very clever Google Chrome which aded http:// to copy-pasted.ServerAlias www.MYDOMAIN.ua en.MYDOMAIN.ua pl.MYDOMAIN.ua ua.MYDOMAIN.ua
Now I found that only first ServerAlias works, i.e. I changed it to
and EN started to work. Temporary solution is wildcard, i.e.ServerAlias en.MYDOMAIN.ua pl.MYDOMAIN.ua ua.MYDOMAIN.ua www.MYDOMAIN.ua
but I don't know if it will cause problems adding other sub-domains as separate sites, if it depends on the order of VIRTUALHOST directives in the config.ServerAlias *.MYDOMAIN.ua
Re: ServerAlias does not work
this is not confirmed on the other server with the same configuration o_O
Re: ServerAlias does not work
I have a similar problem do you found any solution?