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.
My sub domain redirecting to wrong website....
-
- Posts: 35
- Joined: Sat Sep 12, 2015 6:57 am
My sub domain redirecting to wrong website....
for example:
i have siteA.com and siteB.com
i have configure my website for subdomain for cities so users can select their own cities. i.e city1.siteA.com ....city2.siteA.com and so on.
for siteA.com i have configured *.siteA.com to redirect to ip address (like 111.111.111.111)
and it is working fine. users can browse without any problem.
but
for siteB.com i have done the same setting for sub domain, what i have added A record same like siteA.com
i.e *.siteB.com to my ip address(111.111.111.111) - A record.
siteB.com is working good but if i select the city1.siteB.com,
then the website it is showing details of siteA.com but the url is city1.siteB.com.
help me how to show the city1.siteB.com to show the actual siteB.com subdomain details .
i have siteA.com and siteB.com
i have configure my website for subdomain for cities so users can select their own cities. i.e city1.siteA.com ....city2.siteA.com and so on.
for siteA.com i have configured *.siteA.com to redirect to ip address (like 111.111.111.111)
and it is working fine. users can browse without any problem.
but
for siteB.com i have done the same setting for sub domain, what i have added A record same like siteA.com
i.e *.siteB.com to my ip address(111.111.111.111) - A record.
siteB.com is working good but if i select the city1.siteB.com,
then the website it is showing details of siteA.com but the url is city1.siteB.com.
help me how to show the city1.siteB.com to show the actual siteB.com subdomain details .
Last edited by varunvijay on Tue Apr 11, 2017 12:30 pm, edited 2 times in total.
Re: My sub domain redirecting to wrong website....
Well, I think, it's nice to disable all wrogn request and show only valid sites.
Like this -> /etc/nginx/conf.d/your-ip.conf
Like this -> /etc/nginx/conf.d/your-ip.conf
Code: Select all
server {
listen your-ip:80 default;
server_name _;
#access_log /var/log/nginx/your-ip.log main;
#location / {
# proxy_pass http://your-ip:8080;
#}
access_log /dev/null;
error_log /dev/null;
return 444;
}
-
- Posts: 35
- Joined: Sat Sep 12, 2015 6:57 am
Re: My sub domain redirecting to wrong website....
please help me how to configure correctly
my actual website is xookr.in and it is a classified website and have several citys for example
thanjavur.xookr.in
and i also have another website in same ip name is xookr.com and it has cities cities that cover another country.
i have A record for both xookr.in (*.xookr.in point to my ip address) and also for A record for xookr.com ( *.xookr.com to point to my ip address),
now cities of xookr.in is redirecting to correct website that is xookr.in. but cities of xookr.com is showing xookr.in website.
i.e if i select a city say inferno.xookr.com it is showing xookr.in website. but i search xookr.com it is showing correct website but only the city is redirecting to wrong xookr.in
so if we have two website in same ip than for second website do we need to change any setting in DNS or A record.
so cities of xookr.com shows xookr.com website not xookr.in website.
what should i configure please tell me that also
my actual website is xookr.in and it is a classified website and have several citys for example
thanjavur.xookr.in
and i also have another website in same ip name is xookr.com and it has cities cities that cover another country.
i have A record for both xookr.in (*.xookr.in point to my ip address) and also for A record for xookr.com ( *.xookr.com to point to my ip address),
now cities of xookr.in is redirecting to correct website that is xookr.in. but cities of xookr.com is showing xookr.in website.
i.e if i select a city say inferno.xookr.com it is showing xookr.in website. but i search xookr.com it is showing correct website but only the city is redirecting to wrong xookr.in
so if we have two website in same ip than for second website do we need to change any setting in DNS or A record.
so cities of xookr.com shows xookr.com website not xookr.in website.
what should i configure please tell me that also
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: My sub domain redirecting to wrong website....
All the subdomains need to go to '*.xookr.in' go to 'xookr.in'? And all the subdomains '*.xookr.com' to 'xookr.com'?
Have you create the alias on xookr.com?
Have you create the alias on xookr.com?
Re: My sub domain redirecting to wrong website....
Go to Web -> Edit and in "Aliases" add this:
Add in your DNS the wildcard too :)
Code: Select all
*.yourdomain.com
-
- Posts: 35
- Joined: Sat Sep 12, 2015 6:57 am
Re: SOLVED: My sub domain redirecting to wrong website....
again i was facing the same issue after restoring my website from backup as i tried to update php to latest and messed up and so i restored my backup after a clean install of everything.
now my problem is with xookr.in website. last time it was xookr.com showed xookr.in website if i select city.xookr.com after after i added the alias name in xookr.com like newtron said everything was fine.
but this time xookr.in is showing the xookr.com site is i select city.xookr.in,
than i tried the same solution adding *.xookr.in in xookr.in alias but it saying "Error: DNS domain *.xookr.in exists"
so i deleted the * a record in dns and tried again but cant add alias same error is showing even after deleting please help me urgent.
now my problem is with xookr.in website. last time it was xookr.com showed xookr.in website if i select city.xookr.com after after i added the alias name in xookr.com like newtron said everything was fine.
but this time xookr.in is showing the xookr.com site is i select city.xookr.in,
than i tried the same solution adding *.xookr.in in xookr.in alias but it saying "Error: DNS domain *.xookr.in exists"
so i deleted the * a record in dns and tried again but cant add alias same error is showing even after deleting please help me urgent.