Redirect thousands of domains

Discussion in 'Installation/Configuration' started by vaio1, Oct 26, 2009.

  1. vaio1

    vaio1 ISPConfig Developer ISPConfig Developer

    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
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  3. vaio1

    vaio1 ISPConfig Developer ISPConfig Developer

    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
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Yes, you do.
     
  5. lrider

    lrider Member

  6. vaio1

    vaio1 ISPConfig Developer ISPConfig Developer

    Hi lrider,

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

    :confused:

    thanks
     
  7. lrider

    lrider Member

    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.
     

Share This Page