We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
subdomain redirects to another website all together
-
- Posts: 40
- Joined: Mon Dec 22, 2014 1:29 pm
subdomain redirects to another website all together
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?
Re: subdomain redirects to another website all together
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.
-
- Posts: 40
- Joined: Mon Dec 22, 2014 1:29 pm
Re: subdomain redirects to another website all together
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?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 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.
-
- Posts: 40
- Joined: Mon Dec 22, 2014 1:29 pm
Re: subdomain redirects to another website all together
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?
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?
-
- Posts: 40
- Joined: Mon Dec 22, 2014 1:29 pm
Re: subdomain redirects to another website all together
mistyped the url all together that was the issue here.