OT:Apache question
Greg Julius
fromRedHatLists at outtacyte.com
Fri Feb 20 06:41:06 UTC 2004
Mark,
I don't know if this will do the trick for you, it depends upon other
settings, but give this a try:
Create a simple text file called .htaccess in the files directory. In it
place the following:
Options +Indexes
This should turn index viewing On.
Good luck mate,
-g
At 11:14 PM 2/19/2004, you wrote:
>On Thu, 2004-02-19 at 20:21, Lance wrote:
> > Mark,
> >
> > I think the problem is that the directory "files" doesn't have the
> > excute bit set for everybody. Thus Apache can't read the directory. A
> > chmod +x "files" should do the trick. There's a couple of other things
> > it could be as well so this is my first best guess.
> >
> > lance
> >
>
>Lance,
> Thanks for the response. Some stuff is +x, some was not so I changed
>it all but no change.
>
> I got some instructions along time ago about how to take a default
>Apache installation and just make it do a single page. What I was told
>to do was put my documentation directory, so that's where I'm running
>this from today. It's seems like a funky way to do things, but it does
>resolve the index.html file when I go to http://marksmusic.blah.blah
>
>Wizard htdocs # pwd
>/var/www/localhost/htdocs
>Wizard htdocs # ls -la
>total 448
>drwxr-xr-x 4 root root 4096 Dec 22 09:38 .
>drwxr-xr-x 6 root root 4096 Nov 21 10:11 ..
>drwxrwxrwx 4 mark mark 4096 Feb 19 19:28 files
>-rw-r--r-- 1 root root 318 Dec 22 09:41 index.html
>lrwxrwxrwx 1 root root 38 Nov 21 10:11 manual ->
>/usr/share/doc/apache-2.0.48-r1/manual
>Wizard htdocs #
>
>As you can see the files directory is excessively executable.
>
>Inside of files I have some audio and some directories.
>
>Wizard files # ls -la
>total 44452
>drwxrwxrwx 4 mark mark 4096 Feb 19 19:28 .
>drwxr-xr-x 4 root root 4096 Dec 22 09:38 ..
>-rwxrwxrwx 1 root root 2648706 Dec 22 09:42
>GSt_Bounce-2003-12-21.ogg
>-rwxrwxrwx 1 root root 5279734 Jan 14 10:07 Glass1.mp3
>-rwxrwxrwx 1 mark mark 2500154 Jan 14 17:53 Glass1.ogg
>-rwxrwxrwx 1 mark mark 29499168 Jan 14 17:53 Glass1.wav
>-rwxrwxrwx 1 root root 2794259 Dec 22 09:42
>LS_Bounce-2003-12-21.ogg
>-rwxrwxrwx 1 root root 2703771 Jan 11 14:45
>LS_Bounce-2004-01-11.ogg
>drwxrwxrwx 2 root root 4096 Dec 29 16:48 StarCraft
>drwxrwxrwx 3 root root 4096 Feb 19 19:27 dclark
>Wizard files #
>
>
>What happens right now is that I can access the files if I know the name
>ahead of time, like
>
>http://marksmusic.blah.blah/files/Glass1.mp3
>
>This will grab the file and play it. However I cannot get files itself
>to be viewable
>
>
>http://marksmusic.blah.blah/file
>
>returns
>
>Forbidden
>You don't have permission to access /files/ on this server.
>Apache/2.0.48 (Gentoo/Linux) Server at Wizard.knechthome.com Port 80
>
>Any ideas?
>
>Thanks,
>Mark
>
>
>_______________________________________________
>Redhat-install-list mailing list
>Redhat-install-list at redhat.com
>https://www.redhat.com/mailman/listinfo/redhat-install-list
>To Unsubscribe Go To ABOVE URL or send a message to:
>redhat-install-list-request at redhat.com
>Subject: unsubscribe
More information about the Redhat-install-list
mailing list