one thing does not work well in mambo 4.5 and i would like to see it solved in version 5.0
suppose a virtual alias of
*.domain.com
with the document_root of /var/www/domain
apache maps
alexis.zorbas.domain.com/index.php to /var/www/domain/index.php
and
britney.pink.domain.com/index.php also /var/www/domain/index.php
My workaround is to insert $_SERVER["HTTP_HOST"] instead of a string in configuration.php.
But i prefer to check a choicebox, to take the hostname automatic.
----------
Another point is a clean separation of data from code.
There should be one folder for all modules,coms etc. to place the data,images,configs and others
choosable from a domain related path.
I mean having two domains working togehter in the same root. Lets say webmail.domain.com , forum.domain.com and
www.domain.com use the same document_root, but the path to the images or documents are different.
every module shouldn't be allowed to fetch the absolute path . There must be a mambo variable like already but with more abstraction. I suggest an array
$some_absolute_path_var_name["images"],
$some_absolute_path_var_name["documents"],
$some_absolute_path_var_name["config"],
$some_absolute_path_var_name["icons"], etc.
-----------
This would also solve the problem of rewrite_rules in apache, as the realpath() not always is the same as the absolute path
An example
Code:
RewriteCond ${lowercase:%{HTTP_HOST}} ^([0-9a-z]+)\..*
RewriteRule ^/(.*)$ /app/%1/$1 converts
tom.jones.domain.com/haribou into /var/www/domain/app/tom.jones/haribou
mambo 4.5 thinks it is still at /var/www/domain/haribou
and this cause many scripts not to find the images and other stuff
------------
These were minor correction within a design, but the improvent allows a new kind of private webpages.
Andres