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

Unable to add www as server alias

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
15 posts
  • Previous
  • 1
  • 2
ByProgrammer
Posts: 2
Joined: Sat Apr 07, 2018 9:38 pm

Os: CentOS 6x
Web: apache + nginx
Re: Unable to add www as server alias
  • Quote

Post by ByProgrammer » Sat May 26, 2018 8:11 am

So thanks a lot for the solution. I have done it and now I'm waiting the DNS update to view if it works or not, but for the moment I could add the alias with also the SSL Encryption.
But just another question: I have the last version of VESTA CP (0.9.8 rel 21), why it isn't fixed??
Thanks.
Top

Gordon55M
Posts: 43
Joined: Tue Apr 22, 2014 8:37 pm
Contact:
Contact Gordon55M
Twitter

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: Unable to add www as server alias
  • Quote

Post by Gordon55M » Sat Oct 20, 2018 6:02 am

Worked for me, thanks!
Top

plutocrat
Posts: 232
Joined: Fri Jan 27, 2017 9:16 am

Os: Ubuntu 17x
Web: apache + nginx
Re: Unable to add www as server alias
  • Quote

Post by plutocrat » Thu Nov 08, 2018 6:44 am

This issue seems to have been re-introduced in the current version of Vesta (9.8.23). I've logged a bug in Github.

Meanwhile, the fix is to edit func/main.sh, line 936 and change
aliases=$(echo "$aliases" |grep -v www.$domain |sed -e "/^$/d")
to
aliases=$(echo "$aliases" |sed -e "/^$/d")
Top

jacksrhymingego
Posts: 2
Joined: Fri Nov 16, 2018 5:23 pm

Os: Ubuntu 16x
Web: apache
Re: Unable to add www as server alias
  • Quote

Post by jacksrhymingego » Mon Nov 19, 2018 7:38 am

Jumping on this issue - is there any SEO or speed benefit to adding a www alias? I'm using the non-www version as the default on my domain but should I add a www version in there as well?
Top

plutocrat
Posts: 232
Joined: Fri Jan 27, 2017 9:16 am

Os: Ubuntu 17x
Web: apache + nginx
Re: Unable to add www as server alias
  • Quote

Post by plutocrat » Thu Mar 21, 2019 1:59 am

Its a personal choice. See https://www.yes-www.org/ and https://dropwww.com/why

My personal feeling is that you should probably have both, but pick one and redirect all traffic from the one you don't want, to the one you do want.

In terms of speed. No difference, except maybe the shorter one is faster to type.

In terms of SEO, some people say you get penalised for having the same content on two separate domains.
Top


Post Reply
  • Print view

15 posts
  • Previous
  • 1
  • 2

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