Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

WWW Alias not work Topic is solved

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
JokaUK
Posts: 5
Joined: Tue Mar 06, 2018 6:49 pm

Os: CentOS 6x
Web: apache + nginx
WWW Alias not work
  • Quote

Post by JokaUK » Tue Mar 06, 2018 7:02 pm

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

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: WWW Alias not work
  • Quote

Post by skamasle » 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
Top

JokaUK
Posts: 5
Joined: Tue Mar 06, 2018 6:49 pm

Os: CentOS 6x
Web: apache + nginx
Re: WWW Alias not work
  • Quote

Post by JokaUK » 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
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: WWW Alias not work
  • Quote

Post by skamasle » Sat Mar 10, 2018 8:58 pm

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 |"
Top

pipoy
Posts: 112
Joined: Mon Sep 11, 2017 8:02 am

Os: CentOS 6x
Web: apache
Re: WWW Alias not work
  • Quote

Post by pipoy » Thu Jul 12, 2018 3:36 pm

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
Top

MAN5
Posts: 86
Joined: Sun Jan 31, 2016 4:14 am

Os: Ubuntu 15x
Web: apache + nginx
Re: WWW Alias not work
  • Quote

Post by MAN5 » Sun Aug 26, 2018 6:03 am

So, hi vesta team, will be resolved on next release of 23 ?
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password