Page 1 of 1

WWW Alias not work

Posted: Tue Mar 06, 2018 7:02 pm
by JokaUK
Hello,
per example I create one domain account with this example domain "example.com" and the vestacp create automatically the "www.example.com" in the alias.
So far its OK, but the problem begins when the alias "www.example.com" is removed from the "Aliases" box and the change is saved.
Now if I need add again "www.example.com" on the box "Aliases" and save it, does not add and if I refresh the page the "www.example.com" disappear from the box, and in example.com.nginx.conf file have this server_name example.com ; (with the space after domain).
and on example.httpd.conf file the line of ServerAlias disappear.
But if I put anything else instead of WWW works fine.
Per example blog.example.com and www.blog.example.com.

Can you help me with this please?
Thank you.

Re: WWW Alias not work

Posted: Tue Mar 06, 2018 7:29 pm
by skamasle
Actually this bug is reported in bug tracker and for now is a fix here https://github.com/serghey-rodin/vesta/pull/1481

Re: WWW Alias not work

Posted: Wed Mar 07, 2018 10:29 am
by JokaUK
Thank you!
It's already solved.

I comment the line

Code: Select all

 aliases=$(echo "$aliases" |grep -v www.$domain |sed -e "/^$/d")
in the func/main.sh file.
skamasle wrote:
Tue Mar 06, 2018 7:29 pm
Actually this bug is reported in bug tracker and for now is a fix here https://github.com/serghey-rodin/vesta/pull/1481

Re: WWW Alias not work

Posted: Sat Mar 10, 2018 8:58 pm
by skamasle
JokaUK wrote:
Wed Mar 07, 2018 10:29 am
Thank you!
It's already solved.

I comment the line

Code: Select all

 aliases=$(echo "$aliases" |grep -v www.$domain |sed -e "/^$/d")
in the func/main.sh file.
skamasle wrote:
Tue Mar 06, 2018 7:29 pm
Actually this bug is reported in bug tracker and for now is a fix here https://github.com/serghey-rodin/vesta/pull/1481

Not commet it just remove "grep -v www.$domain |"

Re: WWW Alias not work

Posted: Thu Jul 12, 2018 3:36 pm
by pipoy
Just an FYI to mods or developers. This is not fixed on latest update

Although modifying func/main.sh works. But the bug still exists when you install vestacp

Re: WWW Alias not work

Posted: Sun Aug 26, 2018 6:03 am
by MAN5
So, hi vesta team, will be resolved on next release of 23 ?