
2nd December 2010, 16:27
|
|
Member
|
|
Join Date: Nov 2010
Posts: 48
Thanks: 21
Thanked 1 Time in 1 Post
|
|
Aliasdomain problem
Hello,
i urgently need this to solve.
I had domain1.tld and added Aliasdomain domain1.tld2
After removing aliasdomain, when visiting domain1.tld2 it still wants to redirect to domain1.tld.
how to solve this fast?
thanks!!
|

2nd December 2010, 16:30
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
Thats the normal behaviour of the apache webserver. If a domain is not in the configuration but points in dns to the server ip, then apache will show the first website that it finds for that ip address.
There are several solutions, e.g. create a nwe website for domain1.tld2 or change the dns record for domain1.tld2 so that it points to a different server where you wnat to host domain1.tld2
|

2nd December 2010, 16:35
|
|
Member
|
|
Join Date: Nov 2010
Posts: 48
Thanks: 21
Thanked 1 Time in 1 Post
|
|
Hello Till!
I have one server. I have added DNS & site for domain1. Than i have added DNS for domain2 and used 'Aliasdomain for website'. This will work if i want domain2 to be same as domain1 (redirect right?).
But i want them now to be separated, eash site on it's own.
So i removed 'Aliasdomain' but still when enter domain2 as url, it want's to redirect to domain1.
I hope i have made good description.
What do you suggest me?
|

2nd December 2010, 16:45
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
If you want a separate website, then you have to add a separate website. Thats all.
|
|
The Following User Says Thank You to till For This Useful Post:
|
vaio (2nd December 2010)
|

2nd December 2010, 16:52
|
|
Member
|
|
Join Date: Nov 2010
Posts: 48
Thanks: 21
Thanked 1 Time in 1 Post
|
|
Of course i have added new website dor domain2,
but do i need to do anything else, since it still wants to go to domain1
Do i need to restart server maybe?
It looks like aliasdomain has stayed, eventhough i have deleted it and created new website....
i use 3.3.0.1
EDIT, added: now when i have restarted apache, it apparently started working.... hmm... now i am not sure if restarting apache has hot something to do with it, or it just needed some time?
Last edited by vaio; 2nd December 2010 at 16:59.
Reason: added
|

2nd December 2010, 16:59
|
|
Senior Member
|
|
Join Date: Nov 2010
Posts: 315
Thanks: 19
Thanked 41 Times in 37 Posts
|
|
Does this fix the issue?
Code:
service apache2 --reload
If not, tell us more about your DNS configuration. You're pointing both domains to the same IP address, correct?
Also, you are attempting to access domain1.tld2 over HTTP, and not HTTPS, correct?
|
|
The Following User Says Thank You to cbj4074 For This Useful Post:
|
vaio (2nd December 2010)
|

2nd December 2010, 17:01
|
|
Member
|
|
Join Date: Nov 2010
Posts: 48
Thanks: 21
Thanked 1 Time in 1 Post
|
|
Quote:
Originally Posted by cbj4074
Does this fix the issue?
Code:
service apache2 --reload
If not, tell us more about your DNS configuration. You're pointing both domains to the same IP address, correct?
Also, you are attempting to access domain1.tld2 over HTTP, and not HTTPS, correct?
|
I have just missed you for couple of sec. (restated apache just before you suggested)...
Thank you both, Till and cbj4074!!
SOLUTION Summary:
|

2nd December 2010, 17:05
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
Quote:
Originally Posted by vaio
EDIT, added: now when i have restarted apache, it apparently started working.... hmm... now i am not sure if restarting apache has hot something to do with it, or it just needed some time?
|
Every change that you do in the interface needs some time until it gets written to disk.
|

2nd December 2010, 17:13
|
|
Senior Member
|
|
Join Date: Nov 2010
Posts: 315
Thanks: 19
Thanked 41 Times in 37 Posts
|
|
As a final point of note, you may use Webmin to check the status of Apache's configuration files while waiting the few minutes that ISPConfig requires to write the changes to disk.
In Webmin, go to Servers -> Apache Server -> [choose a server] -> Show Directives.
|

2nd December 2010, 17:27
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
That can be done easier in ispconfig: Go to the monitor and click on the jobqueue. As soon as the pending item idisappears in the list, the changes are written to disk successfully.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 22:56.
|
Recent comments
20 hours 32 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 3 hours ago
1 day 5 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 13 hours ago
2 days 2 hours ago
2 days 3 hours ago