[Owncloud] multiple apps directories

eMerzh merzhin at gmail.com
Tue Aug 28 11:39:24 UTC 2012


yeah... here the problem is that if you configure /var/www/owncloud/
as your web root in apache
then /var/www/apps or /apps2/ for the web is not reatchable..
BUT if you configure your apache right, you can set apps2 mapped to
/var/www/apps and accessible..

Ok i know this could be better with everything (image, css, js, other)
served by the /index.php so no need to configure other url  but it
maybe the next step , with other problems to solve (speed, ...) :)




On Tue, Aug 28, 2012 at 12:57 PM, Alessandro Cosentino
<cosenal at gmail.com> wrote:
> I had understood that, but I don't see the point of specifying the
> 'url' field in config.php.
>
> Also, with the multiple apps configuration, I get errors like
> "NetworkError: 404 Not Found -
> http://localhost/owncloud/apps2/calendar/img/icon.svg", but this might
> be just something wrong in my configuration or some cache problem.
>
> my config.php looks like this:
> 'apps_paths' =>
>   array (
>     array (
>       'path' => '/var/www/owncloud/apps',
>       'url' => '/apps',
>       'writable' => true,
>     ),
>     array (
>       'path' => '/var/www/apps',
>       'url' => '/apps2',
>       'writable' => true,
>     ),
>   ),
>
> Thanks,
> Alessandro
>
> On Tue, Aug 28, 2012 at 6:28 AM, eMerzh <merzhin at gmail.com> wrote:
>> Ok, so previously if you want to use an image in your css you do smth
>> like %webroot%apps/myapp/myimage.jpg
>> now your app can be either under apps/ or core_apps under you webroot...
>>
>> so now you can use in your css file a %appswebroot%
>> (https://github.com/owncloud/core/blob/master/lib/minimizer/css.php#L25
>> ) that will take the path to the apps dir of the app
>>
>> if your app is under  core_apps then it will give you something like
>> my/web/root/core_apps ...
>> then you just have to add your app name and the path to the image
>>
>> previously => %webroot%apps/myapp/myimage.jpg
>> now => %appswebroot%/myapp/myimage.jpg
>>
>> I think this should work ( if not, i have to dig deeper to remember :p)
>>
>> hope it get a little bit clearer for you...
>>
>>
>> On Tue, Aug 28, 2012 at 12:18 PM, Alessandro Cosentino
>> <cosenal at gmail.com> wrote:
>>> Edited: I asked a similar question a month ago. I understand that in
>>> case of multiple app folders, those folders are scanned in case of
>>> relative path, such as the css %appswebroot%. My question is: when is
>>> the 'url' specified in the config file used?
>>>
>>> On Tue, Aug 28, 2012 at 5:50 AM, Alessandro Cosentino <cosenal at gmail.com> wrote:
>>>> Hi Frank,
>>>> thanks!
>>>> It's still not clear to me what the url should be. For instance, in a
>>>> css, where does "%appswebroot%" point to?
>>>>
>>>> Alessandro
>>>>
>>>> On Mon, Aug 27, 2012 at 7:05 AM, Frank Karlitschek <frank at owncloud.org> wrote:
>>>>> Hi,
>>>>>
>>>>> because several people asked. Here is the description how to configure the multiple apps directory feature:
>>>>> https://github.com/owncloud/core/blob/master/config/config.sample.php
>>>>>
>>>>>
>>>>> Frank



More information about the Owncloud mailing list