LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-18-2005, 09:55 PM   #1
niverson
Member
 
Registered: Jun 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 128

Rep: Reputation: 15
apache is only showing one file in the directory


I'm trying to setup a personal web server. I have several files in a directory that is owner by root. I have a symbolic link to this directory in /var/www/html/downloads. When I access this directory in the web page, alice_in_chains_LIVE_Facelift.vob is the only file that is visible. Anyone know why this is?



[mythtv@mythtv downloads]$ pwd
/var/www/html/downloads
[mythtv@mythtv downloads]$ ll
total 0
lrwxrwxrwx 1 root root 14 Feb 5 07:48 mp3 -> /mnt/data/mp3/
lrwxrwxrwx 1 root root 14 Feb 5 07:48 ogg -> /mnt/data/ogg/
lrwxrwxrwx 1 root root 20 Feb 5 07:48 video -> /mnt/data/mythvideo/



[mythtv@mythtv mythvideo]$ pwd
/mnt/data/mythvideo
[mythtv@mythtv mythvideo]$ ll
total 102949336
-rwxr-xr-x 1 root root 4274020288 Feb 2 07:52 2_days_in_the_valley.vob
-rwxr-xr-x 1 root root 4659877824 Feb 5 18:48 a_bugs_life.vob
-rwxr-xr-x 1 root root 3495391168 Feb 5 22:04 ace_ventura_pet_detective.vob
-rwxr-xr-x 1 root root 1763895232 Feb 1 21:17 alice_in_chains_LIVE_Facelift.vob
-rwxr-xr-x 1 root root 4272623552 Feb 5 20:32 austin_powers_international_man_of_mystery.vob
-rwxr-xr-x 1 root root 3685877696 Feb 2 21:04 embrace_of_the_vampire.vob
-rwxr-xr-x 1 root root 7898421248 Jan 23 09:28 FIGHTCLB.vob
-rwxr-xr-x 1 root root 2397208576 Jan 24 23:27 foosball.iso
-rwxr-xr-x 1 root root 8474978304 Feb 14 21:58 garden_state.iso
-rwxr-xr-x 1 root root 4552161280 Feb 14 15:35 girl_next_door.iso
-rwxr-xr-x 1 root root 4415623168 Feb 13 16:14 GIRL_NEXT_DOOR_UNRATED_169.vob
-rwxr-xr-x 1 root root 8402614272 Feb 13 08:08 harold_and_kumar.iso
-rwxr-xr-x 1 root root 4984166400 Feb 12 22:07 HELLBOY.vob
-rwxr-xr-x 1 root root 3682467840 Feb 5 09:54 hellraiser_III_hell_on_earth.vob
-rwxr-xr-x 1 root root 3802398720 Feb 5 11:59 how_to_be_a_player.vob
-rwxr-xr-x 1 root root 7629758464 Feb 17 18:51 kill_bill_vol_1.iso
-rwxr-xr-x 1 root root 5433657280 Feb 6 00:50 never_say_never_again.vob
-rwxrwxr-x 1 root root 0 Jan 18 21:55 nfslockfile.lock
-rwxr-xr-x 1 root root 4352024512 Feb 2 23:08 poison_ivy_2_lily.vob
-rwxr-xr-x 1 root root 5045366720 Feb 5 14:46 scream.vob
-rwxr-xr-x 1 root root 4243808256 Feb 15 21:48 seeing_other_people.iso
-rwxr-xr-x 1 root root 3615379392 Feb 6 07:43 the_dallas_connection.vob
-rwxr-xr-x 1 root root 4338339776 Feb 3 07:05 the_frighteners.vob
 
Old 02-18-2005, 10:18 PM   #2
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
sym links are not usually followed by default in apache. httpd is hopefully not running as root on your box either. post your httpd.conf, that should shed some light on your problem
 
Old 02-18-2005, 11:28 PM   #3
niverson
Member
 
Registered: Jun 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
The user account "apache" is running the webserver.

<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>





<Directory /var/www/html/downloads>
AuthType Basic
AuthName "Restricted Access Area"
AuthUserFile /usr/local/etc/httpd/users
Require user ThrowingStones
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
 
Old 02-19-2005, 01:46 PM   #4
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
what happens if you set ownership recursively on your downloads directory and its contents to apache or whatever you set your severt ot run as?
 
Old 02-22-2005, 04:32 PM   #5
niverson
Member
 
Registered: Jun 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
I used chgrp and chown to change ownership and group to apache -- but the behaviour didn't change.
 
Old 02-27-2005, 05:12 PM   #6
niverson
Member
 
Registered: Jun 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
Is there a size restriction on what apache can show? I have apache displaying a symbolic link to a directory. Using mozilla to view the directory, only alice_in_chains_LIVE_Facelift.vob and the nfslockfile.lock is visible ---- the permission are the same on all the vob and iso files. The only difference is that all the other files are 2GB and up where as those 2 files are below 2GB.


Index of /downloads/video
Icon Name Last modified Size Description[DIR] Parent Directory
alice_in_chains_LIVE_Facelift.vob 01-Feb-2005 21:17 1.6G
nfslockfile.lock 18-Jan-2005 21:55 0
Apache/2.0.52 (Fedora) Server at 192.168.X.X Port 80





[root@mythtv mythvideo]# ll
total 167900592
-rw-r--r-- 1 root root 4274020288 Feb 2 07:52 2_days_in_the_valley.vob
-rw-r--r-- 1 root root 4659877824 Feb 5 18:48 a_bugs_life.vob
-rw-r--r-- 1 root root 3495391168 Feb 5 22:04 ace_ventura_pet_detective.vob
-rw-r--r-- 1 root root 1763895232 Feb 1 21:17 alice_in_chains_LIVE_Facelift.vob
-rw-r--r-- 1 root root 4272623552 Feb 5 20:32 austin_powers_international_man_of_mystery.vob
-rw-r--r-- 1 root root 8015611904 Feb 24 22:41 collateral.iso
-rw-r--r-- 1 root root 8418603008 Feb 27 12:24 control_room.iso
-rw-r--r-- 1 root root 6728974336 Feb 26 11:45 donnie_darko.iso
-rw-r--r-- 1 root root 3685877696 Feb 2 21:04 embrace_of_the_vampire.vob
-rw-r--r-- 1 root root 7898421248 Jan 23 09:28 FIGHTCLB.vob
-rw-r--r-- 1 root root 2397208576 Jan 24 23:27 foosball.iso
-rw-r--r-- 1 root root 8474978304 Feb 14 21:58 garden_state.iso
-rw-r--r-- 1 root root 4552161280 Feb 14 15:35 girl_next_door.iso
-rw-r--r-- 1 root root 4415623168 Feb 13 16:14 GIRL_NEXT_DOOR_UNRATED_169.vob
-rw-r--r-- 1 root root 4497799168 Feb 23 21:22 god_is_great_and_im_not.iso
-rw-r--r-- 1 root root 8402614272 Feb 13 08:08 harold_and_kumar.iso
-rw-r--r-- 1 root root 4984166400 Feb 12 22:07 HELLBOY.vob
-rw-r--r-- 1 root root 3682467840 Feb 5 09:54 hellraiser_III_hell_on_earth.vob
-rw-r--r-- 1 root root 3802398720 Feb 5 11:59 how_to_be_a_player.vob
-rw-r--r-- 1 root root 7629758464 Feb 17 18:51 kill_bill_vol_1.iso
-rw-r--r-- 1 root root 4447129600 Feb 27 11:09 larceny.iso
-rw-r--r-- 1 root root 4583467008 Feb 25 21:14 napoleon_dynamite.iso
-rw-r--r-- 1 root root 5433657280 Feb 6 00:50 never_say_never_again.vob
-rwxrwxr-x 1 root root 0 Jan 18 21:55 nfslockfile.lock
-rw-r--r-- 1 root root 4352024512 Feb 2 23:08 poison_ivy_2_lily.vob
-rw-r--r-- 1 root root 5045366720 Feb 5 14:46 scream.vob
-rw-r--r-- 1 root root 4243808256 Feb 15 21:48 seeing_other_people.iso
-rw-r--r-- 1 root root 8455905280 Feb 22 21:15 shaun_of_the_dead.iso
-rw-r--r-- 1 root root 7459905536 Feb 26 12:22 super_size_me.iso
-rw-r--r-- 1 root root 8207710208 Feb 19 07:14 the_chronicles_of_riddick.iso
-rw-r--r-- 1 root root 3615379392 Feb 6 07:43 the_dallas_connection.vob
-rw-r--r-- 1 root root 4338339776 Feb 3 07:05 the_frighteners.vob
-rw-r--r-- 1 root root 5694967808 Feb 21 22:19 this_girls_life.iso
 
Old 02-27-2005, 05:39 PM   #7
niverson
Member
 
Registered: Jun 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
After doing a little research on apache using google. Apache can only handle >2GB files if large file support is compiled in. Additionally it looks like compiling in LFS will break other modules. Does anyone know when LFS support is going to be added in as default or which modules will break?

Thanks,
Nate
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 06:03 AM
Apache is not showing pictures deweirdt Linux - Software 4 04-25-2005 10:45 AM
how do i prevent the directory/file links from showing in the absence of index.*? spyghost Linux - Networking 2 10-08-2004 10:52 AM
Apache: png file in CGI directory doza Linux - Software 2 08-27-2004 08:05 AM
Anyway to lock apache log file before I tar the directory? m3kgt Linux - General 2 11-05-2003 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration