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

[Solved] How to remove the redirection domain.com to domain-com.server.company.com ?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
[Solved] How to remove the redirection domain.com to domain-com.server.company.com ?
  • Quote

Post by Spheerys » Thu May 12, 2016 4:44 pm

I have a strange problem on few websites hosted by my vestacp server.

During the dev phase, the website was reached on domain-com.myserver.mycompany.com as temporary URL
The original domain.com was set up to use previous DNS server to reach the old website.

When the new website is OK, I'm changing the DNS for domain.com to use ns1.mycompany.com and ns2.mycompany.com
Generaly, it's working like a charm.

But on 2 websites, if I go on domain.com, I'm automaticaly redirected to domain-com.myserver.mycompany.com

And I don't understand how to remove this redirection on vestacp (because I think the issue is on vestacp side), and use http://www.domain.com as main URL

I hope I was clear enought !
Last edited by Spheerys on Sat May 21, 2016 4:02 pm, edited 1 time in total.
Top

mike08
Posts: 160
Joined: Sat Jun 20, 2015 7:12 am

Os: Debian 6x
Web: apache + nginx
Re: How to remove the redirection domain.com to domain-com.server.company.com ?
  • Quote

Post by mike08 » Fri May 13, 2016 12:00 pm

Hi there,

How have you set up the redirection at the beginning?
Top

Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
Re: How to remove the redirection domain.com to domain-com.server.company.com ?
  • Quote

Post by Spheerys » Sat May 14, 2016 10:11 am

I didn't set any specific option neither before, nor after
Here my configuration for the user account :

Image

Here the web configuration for the domain :
Image
Last edited by Spheerys on Sat May 21, 2016 4:02 pm, edited 1 time in total.
Top

Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
Re: How to remove the redirection domain.com to domain-com.server.company.com ?
  • Quote

Post by Spheerys » Sun May 15, 2016 7:58 pm

Maybe a clue.
I have 3 users on VestaCP :
- me, with 12 websites
- user1 with only one website : biotoucy.com
- user2 with only one other website

The problem occurs only with user1 and user2.
I don't have any issue with the alias domain with my user account

It's look like a bind issue, but I don't know how to debug it...
Top

Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
Re: How to remove the redirection domain.com to domain-com.server.company.com ?
  • Quote

Post by Spheerys » Tue May 17, 2016 8:18 pm

Ah ah ah ah.
The problem comes from the CMS (Wordpress in this case) which was installed from the URL domain-com.server.company.com !
This url was recorded in the database.
Change it from the CMS or phpmyadmin solved the problem !
Top


Post Reply
  • Print view

5 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