You are not logged in.

#1 2010-05-31 18:23:15

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,223
Website

[Apache2 | PHP] serving local files

Hi there,

A recent hardware update and reinstall of my primary office server had broken the following functionality of my webbased dossier program:

With the use of glob() I can list all the files in the directory belonging to a dossier - this is still working. All the files in the list are served as a <a href="file://location/name">name</a> -url.

But when I click on the links, firefox or epiphany do nothing: it doesn't fail to open it, it doesn't even try to open it and no error is given.

Since all the files are on the a file- and webserver, and the directories with the files are also served by nfs to the clients, this should work and I suspect that something in apache or PHP is breaking this functionality. However, I don't recall that I used to change the default config to use this site, other than the alias- and directory-directive in /etc/apache2/conf.d/*name*...

Zl.
PS: the code makes a difference for those connecting from the outside: the files are then served through http, and this functionality still works (but the docs are opened read-only, as is to be expected).

Last edited by zenlord (2010-05-31 18:23:50)

Offline

#2 2010-05-31 18:31:48

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,223
Website

Re: [Apache2 | PHP] serving local files

OK, this is *weird*: if I right-click on the link and copy the link over to the address-bar of a new tab, the file opens immediately.

Seems like it is a client-problem? Or could it be a server-side problem?

Offline

Board footer

Powered by FluxBB