#1  
Old 26th October 2009, 08:44
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Question Redirect thousands of domains

Hi guys,

what is the difference between the co-domains and the following Apache Directives?

Code:
<Directory /var/www/web1/web/>
      AllowOverride All
</Directory>

RewriteCond %{HTTP_HOST} [a-z]\.site1\.[a-z]+$ [NC]
RewriteRule ^/(.*)         http://www.mainsite.com/_temp/$1 [L] 

RewriteCond %{HTTP_HOST} [a-z]\.site2\.[a-z]+$ [NC]
RewriteRule ^/(.*)         http://www.mainsite.com/public/$1 [L] 

.
.
.
.
.


RewriteCond %{HTTP_HOST} [a-z]\.siteN\.[a-z]+$ [NC]
RewriteRule ^/(.*)         http://www.mainsite.com/public/$1 [L]
Can I substitute the Co-Domains with those apache directive?

thanks
Reply With Quote
Sponsored Links
  #2  
Old 26th October 2009, 11:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,032
Thanks: 826
Thanked 5,381 Times in 4,228 Posts
Default

No, as you need an alias for the domains in the vhost too to tell apache which vhost is responsible for which domain, this alis is added by the co-domain function. But you dont have to use the rewrite rule of the co-domain function and use your own manual rules instead.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 26th October 2009, 15:56
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

I have a customer who has about 350 domain name to be register and one main website. He would like to use only a domain name (i.e. maindomain.com) and redirect all those other domains to the main website maindomain.com.

Have I create 350 co-domains?
is there a simple and fast way to do it?

thanks
Reply With Quote
  #4  
Old 27th October 2009, 19:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by mturillo View Post
Have I create 350 co-domains?
Yes, you do.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 28th October 2009, 08:47
lrider lrider is offline
Member
 
Join Date: Nov 2006
Posts: 70
Thanks: 1
Thanked 2 Times in 2 Posts
Default

You can also "automate" the process using the ISPConfig Remoting Framework to do it.

http://www.ispconfig.com/remoting_plugin.htm
Reply With Quote
  #6  
Old 28th October 2009, 08:55
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

Hi lrider,

the ISPConfig Remoting Framework doesn't have the Co-Domain method implemented!



thanks
Reply With Quote
  #7  
Old 28th October 2009, 09:06
lrider lrider is offline
Member
 
Join Date: Nov 2006
Posts: 70
Thanks: 1
Thanked 2 Times in 2 Posts
 
Default

I have checked the examples of the remote framework and I did not find any way of adding a codomain using this software.

Unless somebody tell us the name of the call, I think it can not be done.

I think that we have to forget my last post.
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 have I redirect 150 domains in a ISPConfig web profile? vaio1 General 11 1st October 2009 11:26
Redirect Wireless Client to Late-Pay Notice giganet Server Operation 1 19th June 2009 08:57
Exim Gateway with mailwatch (Unable to receive emails) siul0_0 HOWTO-Related Questions 10 8th May 2009 23:00
Web Hosting Only For Individual Domains bails Installation/Configuration 2 19th August 2008 16:35
different counting of domains torusturtle Feature Requests 7 9th May 2007 22:18


All times are GMT +2. The time now is 18:41.


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