LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apache is only showing one file in the directory (https://www.linuxquestions.org/questions/linux-software-2/apache-is-only-showing-one-file-in-the-directory-292115/)

niverson 02-18-2005 10:55 PM

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

odious1 02-18-2005 11:18 PM

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

niverson 02-19-2005 12:28 AM

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>

odious1 02-19-2005 02:46 PM

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?

niverson 02-22-2005 05:32 PM

I used chgrp and chown to change ownership and group to apache -- but the behaviour didn't change.

niverson 02-27-2005 06:12 PM

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

niverson 02-27-2005 06:39 PM

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


All times are GMT -5. The time now is 02:38 PM.