On 23/10/2009, at 07:02, Raúl Jareño Morago wrote:

> -          Shared directory with source files:         /usr/share/ 
> myapp
> -          Document root of virtual server:             /var/server1/ 
> www/myapp
> -          Creating symbolic links to source files:   ln –s /usr/ 
> share/myapp/* /var/server1/www/myapp
>
> The problem comes when a PHP file tries to access to one of these  
> specific files (for example, /var/server1/www/myapp/config.php)  
> because it takes the path relative to physical file (/usr/share/ 
> myapp/config.php), and not the path relative to symbolic links (/var/ 
> server1/www/myapp/config.php).
>
> Is there any way in Cherokee (by rules or something) of doing PHP to  
> take path of symbolic links instead of physical links?

Well, that's an issue you should fix in the PHP code; there's no much  
Cherokee can do at that regard.

Just as a quick idea, check the value of PATH_TRANSLATED, and  
SCRIPT_FILENAME. They may be what you're looking for.
Good luck!

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to