Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CF load file from invalid path

New Here ,
Dec 28, 2008 Dec 28, 2008
I have ColdFusion 8 over Apache 2 in Linux Gentoo. And i have following problem.
I have virtualhost TestVhost, have 2 the same directory structures: first outside www-root which not acessable from browser, second inside which accessable from browser and ColdFusion.
Access denied for the first structure for ColdFusion, Read only for owner as me. I copy files from the first structures to the second (not symbol links, it's really copies). But sometimes i have problem, when ColdFusion tries to load from the fisrt directory structures but it haven't access so it generate a error. I have noticed, that this problem begins when CF haven't access in both directories (and it's trying first structure). When i change access for the second struct, CF continue trying to load first structure, which is wrong (other path, and outside www-accessing directories).
If i delete/rename file in second structure (in the first structure this file exists), CF not found file. If i delete/rename file in the first structure (and in the second this file exists without renaming), CF not found file too. CF found file if it be in the both directories' structures. But it loads from the first NOT WEB-ACCESSABLE directory.
After several restaring as CF as Apache (when file in the first dir's structure not accessable CF), it begins to work.
I'm confused because it's interesting problem but i don't know why it's doing this and how to solve problem.
348
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 29, 2008 Dec 29, 2008
LATEST
??? wrote:
> I have ColdFusion 8 over Apache 2 in Linux Gentoo. And i have following
> problem.
> I have virtualhost TestVhost, have 2 the same directory structures: first
> outside www-root which not acessable from browser, second inside which
> accessable from browser and ColdFusion.
> Access denied for the first structure for ColdFusion, Read only for owner as
> me. I copy files from the first structures to the second (not symbol links,
> it's really copies). But sometimes i have problem, when ColdFusion tries to
> load from the fisrt directory structures

I don't think that CF tries to read from that directory (if it does then
that directory is accesible to the browser).

> but it haven't access so it generate a
> error. I have noticed, that this problem begins when CF haven't access in both
> directories (and it's trying first structure).

Please use directory not structure, it's confusing.

> When i change access for the
> second struct, CF continue trying to load first structure, which is wrong
> (other path, and outside www-accessing directories).

Again, if it's outside CF shouldn't have access to it (unless you have
an alias, mod_rewrite, etc redirecting to that dir)

> If i delete/rename file in second structure (in the first structure this file
> exists), CF not found file. If i delete/rename file in the first structure (and
> in the second this file exists without renaming), CF not found file too. CF
> found file if it be in the both directories' structures. But it loads from the
> first NOT WEB-ACCESSABLE directory.

How do you know ? (It's really a question)

> After several restaring as CF as Apache (when file in the first dir's
> structure not accessable CF), it begins to work.
> I'm confused because it's interesting problem but i don't know why it's doing
> this and how to solve problem.

"Cache web server paths" in Server Settings -> Caching might or might
not help (in the CF administrator).

--
Mack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources