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

subdomain redirects to another website all together

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
eagles051387
Posts: 40
Joined: Mon Dec 22, 2014 1:29 pm

subdomain redirects to another website all together
  • Quote

Post by eagles051387 » Tue Jan 27, 2015 10:43 am

I have a user who has two site on his account and package. The issue is that the main website which is a placeholder static html page loads fine, but then the subdomain redirects me to a website on an entierly different account. Any ideas on what is causing this and how I should fix this?
Top

mxroute
Posts: 16
Joined: Fri Jan 09, 2015 6:52 pm

Re: subdomain redirects to another website all together
  • Quote

Post by mxroute » Wed Jan 28, 2015 12:04 am

Check that the A record points to the correct IP, verify that the virtual host is configured properly in /home/username/conf/web in the relevant files, which may be any combination of apache2.conf, sapache2.conf, httpd.conf, shttpd.conf, nginx.conf, snginx.conf. You'll need to know a little about virtual hosts to read this. Alternative is to have someone look at it who does.
Top

eagles051387
Posts: 40
Joined: Mon Dec 22, 2014 1:29 pm

Re: subdomain redirects to another website all together
  • Quote

Post by eagles051387 » Wed Jan 28, 2015 6:56 am

mxroute wrote:Check that the A record points to the correct IP, verify that the virtual host is configured properly in /home/username/conf/web in the relevant files, which may be any combination of apache2.conf, sapache2.conf, httpd.conf, shttpd.conf, nginx.conf, snginx.conf. You'll need to know a little about virtual hosts to read this. Alternative is to have someone look at it who does.
I do know about apache vhosts. I can confirm that it is pointing to the right ip address. My question now becomes I have nginx acting as reverse proxy and apache behind it. Wouldnt I need just a virtual host on nginx?

I just checked the apache.conf and nginx.conf file and they seem fine as they should in terms of what it should be doing. What doesnt make much sense is why it happens if you have the main domain plus a subdomain of that domain on the same vesta cp account. If i split them into two seperate accounts this issue does not happen.
Top

eagles051387
Posts: 40
Joined: Mon Dec 22, 2014 1:29 pm

Re: subdomain redirects to another website all together
  • Quote

Post by eagles051387 » Wed Jan 28, 2015 12:26 pm

I think I have isolated the issue. looking at the nginx vhost directives it seems like there is no vhost entry for the subdomain. Where can i file bugs against vesta to have this fixed?

I added the nginx server chunk for the subdomain site yet the site is still loads an entierly different website for an entierly different domain. apache doesnt seem to be an issue, unless i need to ad an apache vhost?
Top

eagles051387
Posts: 40
Joined: Mon Dec 22, 2014 1:29 pm

Re: subdomain redirects to another website all together
  • Quote

Post by eagles051387 » Wed Jan 28, 2015 2:04 pm

mistyped the url all together that was the issue here.
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