[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cpx] Virtual host and aliases, main brake to CPX use ?



Hello Ghislain, Bob and Steve,

Here's what we've used to solve this dilemma.

We add (manually from the CLI) a VirtualHost directive using mod rewrite to redirect to an alternative domain works just fine. Separate log files are also used. To date this hasn't caused and problems or conflicts with CPX that we're aware of.

I.e.;

<VirtualHost xxx.xxx.xxx.xxx:80>
 SSLDisable
 User           vhosts
 Group          vhosts
 ServerName     domain1.net
 ServerAlias    www.domain1.net
 ServerAdmin    webmaster@xxxxxxxxxxx
 DocumentRoot   /home/vhosts/www/domain1.net
 ScriptAlias    /cgi-bin/ "/home/vhosts/www/cgi-bin/"
 <Directory /home/vhosts/www/cgi-bin>
   AllowOverride None
   Options ExecCGI
   Order allow,deny
   Allow from all
 </Directory>
 CustomLog /usr/local/apache/logs/vhosts/domain1.net-access_log combined
 ErrorLog       /usr/local/apache/logs/vhosts/domain1.net-error_log
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerAlias domain2.net *.domain2.net
ServerAdmin webmaster@xxxxxxxxxxx
ServerName www.domain2.net
DocumentRoot /tmp
CustomLog /usr/local/apache/logs/vhosts/domain2.net-access_log
ErrorLog  /usr/local/apache/logs/vhosts/domain2.net-error_log
RewriteEngine On
RewriteRule ^(.*) http://domain2.net$1
</VirtualHost>

As far as e-mail is concerned, the CLI works fine for adding and editing aliases, etc.

We hope that these sort of enhancements/capabilities are eventually available through CPX, but we also recognize that there are limitations.

For now, CPX is working fine for certain customers, but not all. For customers that CPX doesn't currently work for we'll utilize iManager, iManager Pro and the CLI.

HTHs

Cheers,
Uwe Schneider
AlpineWeb Design
http://AlpineWeb.com/
+1-603-356-8797


ADNET Ghislain wrote:
> Hello,
>
> I come back at this because this is a very serious brake to a CPX
> install. As you know if you have the domains:
>
> corporate.com
> corporate.org
> corporate.net
>
>  You cannot, under CPX, use the three domains for the same website
> (virtualhost). This mean you will have to create 3 sites each with a
> custome index.php that redirect to the main one. If you just add the
> ServerAlias in the httpd.conf by hand then CPX will not allow you to
> create any email adress to those domains so you cannot use this trick.
>
>  This limit is very strange to me as it seems a so basic feature of
> virtualhost that i wonder why it isn't here from the start. Almost all
> my customers have the corporate.com/corporate.fr domains for the same
> website so it make cpx unusable for them (as they have allway legacy
> email adress in the other domain ). As you know putting new customer in
> front of imanager where a single space  can break anything is not what i
> really want to do anymore :)
>
>  So i am frustrated to have this great tool here lacking this feature.
> It seems to me i have the latest Ferari car in front of me but there is
> only Three wheels so i just can watch it and not take it for a drive :)
>
>  Any resseller has the same issue with domains ? how do you solve this
> if the customer own the complete VPS ?
>
>  I really hope the dev team can come on something about this (or at
> least allow email adress to be created for each domains in the
> local-hosts-names instead of the domain created as websites for the
> server admin).
>
> best regards,
> Ghislain.
> AQUEOS.
>
> ======================================================================
> This is <cpx@xxxxxxxxxxxxx>      <http://www.groupmail.org/lists/cpx/>
> Before posting a question, please search the archives (see above URL).


======================================================================
This is <cpx@xxxxxxxxxxxxx>      <http://www.groupmail.org/lists/cpx/>
Before posting a question, please search the archives (see above URL).


Home | Main Index | Thread Index
Match: Format: Sort by:
Search: