#1  
Old 6th May 2009, 11:03
martin1977 martin1977 is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Thanks: 0
Thanked 3 Times in 3 Posts
Default setting up Web Aliasdomain

Hello all.

I am struggeling to setup a redirect from one domain to another.
I use Debain Lenny and ISPconfig 3 and installed it according to the HowTo "The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 3]"

I have a webpage on domain1.com that is working and want to redirect all request on domain2.com to domain1.com.

As I understand it it should be possible to do that with "Web Aliasdomain". Unfortunatelly it seems I am too foolish to do that. However, whenever I request domain2.com in the browser I only get the standard Apache Welcome site.
Could somebody please explain to me how this should be set? It feels I have tried out a lot and I am getting desperate.

Thank you
Martin

P.S.: otherwise the software works nicely so far.
Reply With Quote
Sponsored Links
  #2  
Old 6th May 2009, 17:13
kolipoki kolipoki is offline
Junior Member
 
Join Date: Jun 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey Martin,

Newbie here, but... the following might help, thou it is not the procedure you would be looking for. Nonetheless, it will have the same redirect effect in the meantime. In domain1.com, open the Apache welcoming message with an editor (maybe should also make a copy of the original before proceeding with the rest) and substitute the html code with this:

<HTML>
<HEAD>
<TITLE>...</TITLE>
<META HTTP-EQUIV="refresh" content="1; URL=http://www.domain2.com/">
</HEAD>
<BODY>


</BODY>
</HTML>


This should do the job. However, it's kind of a workaround and it's not the server way to redirect if using virtual/multiple hosting.

Last edited by kolipoki; 6th May 2009 at 17:18.
Reply With Quote
  #3  
Old 6th May 2009, 19:07
martin1977 martin1977 is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Thanks: 0
Thanked 3 Times in 3 Posts
Default

That could work but I would prefer to do it in a different way, e.g. with the implemented function that comes with ISPconfig3.
As domain2.com is a virtual domain there is no webspace assigned to it. The welcome message must be the global server welcome and I do not want to mess with that one for a single domain.
Anyway, thank you for your reply but maybe someone knows how to use the implemented "Web Aliasdomain".

//Martin
Reply With Quote
  #4  
Old 6th May 2009, 20:08
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,744
Thanks: 840
Thanked 5,598 Times in 4,409 Posts
Default

Just add a aliasdomain domain2.com and select as target domain1.com and click on save. Make sure that you have setup the dns records for both domains correctly so that they point to the same IP address.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 7th May 2009, 01:45
martin1977 martin1977 is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello Till,

Thank you for your answer. Could you comment on the options "redirect type", "redirect path" and "auto-subdomain" please? I tried different combinations without really knowing what I do here.
The DNS records point to the same IP.

Best regards
Martin
Reply With Quote
  #6  
Old 7th May 2009, 10:18
martin1977 martin1977 is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Maybe I should add that domain is always forwarded to /var/www/index.html.
Reply With Quote
  #7  
Old 7th May 2009, 12:08
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,744
Thanks: 840
Thanked 5,598 Times in 4,409 Posts
Default

Please take a look at the generated vhost file in /etc/apache2/sites-enabled/ to see what the different options do. For apache rewriting, please take a look here and there are also several threads which explain the options here in the forums.

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 9th May 2009, 10:48
martin1977 martin1977 is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Thanks: 0
Thanked 3 Times in 3 Posts
 
Default

OK, found the problem.
This whole confusion was caused by the fact that ISPconfig makes only periodically updates of the config files.
Changing settings and immediatelly checking the results is a bad idea. Typically it took my system up to 60s to make the changes.

Thanks for the help.

Martin
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install OpenOficeOrg 3.0.0 in Ubuntu 8.04 ernesthagger HOWTO-Related Questions 43 23rd December 2008 15:42
where are the error logs for ISPConfig? claudioimai Installation/Configuration 13 25th November 2008 12:21
Setting up a multi site web server and DNS wxman Installation/Configuration 7 31st October 2007 18:33
Help. Apache don't start payne Server Operation 3 17th August 2007 16:57
get thousands of "Mailsize" mails from own server torusturtle Installation/Configuration 20 24th December 2006 15:51


All times are GMT +2. The time now is 11:25.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.