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
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.
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
You can also "automate" the process using the ISPConfig Remoting Framework to do it. http://www.ispconfig.com/remoting_plugin.htm
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.