You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Marc Fromm <Ma...@wwu.edu> on 2008/10/23 17:32:10 UTC

[users@httpd] directory contents not displaying

I built a new server running linux and httpd-2.2.3-11.el5_1.3.

A specific page has a tab menu with specific items. Each tab has a sub-menu called files. Clicking on the files link under the respective tab should generate a list of files and folders relative to the tab, which does work on the old server. On both the old and the new server there is a directory /var/www/html/lan/files/sfr. Inside "sfr" there is a directory for each tab's contents. Instead of displaying the contents of a tab's specific directory, each tab's files link, on the new server, displays the same thing-the contents of the "sfr" folder and not the contents of the tabs specific directory. If I manually enter the full path in the address bar to a specific directory then the contents are displayed.

Since the website code is the same on the old and the new server, I must assume there is some httpd configuration that is blocking the files links form accessing the directories inside the sfr directory.

Any ideas on what I can configure to have the files links display the contents of the directories?

Marc


RE: [users@httpd] directory contents not displaying

Posted by Marc Fromm <Ma...@wwu.edu>.
They are listed by our own code.

-----Original Message-----
From: Eric Covener [mailto:covener@gmail.com]
Sent: Thursday, October 23, 2008 8:37 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] directory contents not displaying

On Thu, Oct 23, 2008 at 11:32 AM, Marc Fromm <Ma...@wwu.edu> wrote:
> I built a new server running linux and httpd-2.2.3-11.el5_1.3.

Are the files listed by mod_autoindex or some of your own code?

SELinux?

--
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] directory contents not displaying

Posted by Eric Covener <co...@gmail.com>.
On Thu, Oct 23, 2008 at 11:32 AM, Marc Fromm <Ma...@wwu.edu> wrote:
> I built a new server running linux and httpd-2.2.3-11.el5_1.3.

Are the files listed by mod_autoindex or some of your own code?

SELinux?

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] directory contents not displaying

Posted by Marc Fromm <Ma...@wwu.edu>.
Problem solved. It turned out to be a php problem and some deprecated variables.

-----Original Message-----
From: André Warnier [mailto:aw@ice-sa.com]
Sent: Thursday, October 23, 2008 10:34 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] directory contents not displaying

Marc Fromm wrote:
[...]
If I manually enter the full path in the address bar to a specific directory
  then the contents are displayed.

[...]

That is the part that does not seem to make sense.
The server should not know the difference : whether you click on the tab
or enter the URL manually in the browser's URL bar, the same request
should go to the server.
If you have a different response, then it means that *not* the same
request is going to the server.  I would concentrate on that.
Look at the server's access log in both cases, to see the difference in
the requested URL.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] directory contents not displaying

Posted by André Warnier <aw...@ice-sa.com>.
Marc Fromm wrote:
[...]
If I manually enter the full path in the address bar to a specific directory
  then the contents are displayed.

[...]

That is the part that does not seem to make sense.
The server should not know the difference : whether you click on the tab 
or enter the URL manually in the browser's URL bar, the same request 
should go to the server.
If you have a different response, then it means that *not* the same 
request is going to the server.  I would concentrate on that.
Look at the server's access log in both cases, to see the difference in 
the requested URL.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org