I’m busy to configure my qube for mutiple domains. That’s working
The only thing which is questioning me is: e-mail is addressed to the servername: www.domain.com, so dennis@www.domain.com is the result when using ie. webmail.
Of course I can change the servername to: domain.com, but than HTML references do go wrong. Or a rewrite has to do the job, but I have no idea how to do this. Anyone?
domain’s container in httpd.conf
(example, paths could differ with Qube o.s.):
NameVirtualHost 192.168.1.8
VirtualHost 192.168.1.8 (tussen haken)
ServerName grifstate.com
ServerAdmin dennis
DocumentRoot /home/sites/home/web
ServerAlias grifstate.com http://www.grifstate.com
RewriteEngine on
RewriteCond %{HTTP_HOST} !^192.168.1.8(:80)?$
RewriteCond %{HTTP_HOST} !^www.grifstate.com(:80)?$
RewriteCond %{HTTP_HOST} !^grifstate.com(:80)?$
RewriteRule ^/(.*) http://www.grifstate.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
/VirtualHost (tussen haken)
be VERY careful though, the Qube databases, postgres etc. obtain their name info from httpd.conf
you can completely mess them up, making a mistake in httpd.conf, so keep the original and always remember to make THAT version of httpd.conf active before you perform site-management-related tasks with the Qube webbased admin!