Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 20

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 21.05.2004, 15:31   #1 (permalink)
Baby Mamber
 
warteschlange's Avatar
 
Join Date: Apr 2004
Location: Winterthur, Switzerland
Posts: 12
warteschlange is on a distinguished road
Default absolute path restrictions

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
warteschlange is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 21.05.2004, 21:57   #2 (permalink)
Senior Mamber
 
Join Date: Mar 2004
Posts: 121
alwarren is an unknown quantity at this point
Default Re: absolute path restrictions

Submit feature requests to http://mosforge.net/tracker/?atid=104&group_id=5
alwarren is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
home / frontpage path bkguy Mambo 4.5 'How Do I' Questions 2 11.07.2004 02:37
How to have the PATH as SITE NAME? alfri Mambo 4.5 'How Do I' Questions 1 24.05.2004 02:18
Htmlarea2 and other WYSIWYG don't work. Maybe the reason is something absolute path? gruz Mambo 4.5 Installation and Upgrades 1 21.05.2004 16:40
path names for templates? Nick Weavers Template Discussions 1 12.04.2004 02:41


All times are GMT +2. The time now is 21:55.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.