Lee Wiggers wrote:
On Fri, 26 Jan 2007 08:44:22 -0500
ET <[EMAIL PROTECTED]> wrote:

Lee Wiggers wrote:
On Fri, 26 Jan 2007 07:35:33 -0500
Lee Wiggers <[EMAIL PROTECTED]> wrote:

On Fri, 26 Jan 2007 06:58:47 -0500
ET <[EMAIL PROTECTED]> wrote:

How do I serve a directory on my site?

mdk 9.2 Apache2

I feel dumb, but the need never came up before.

Lee
assuming already did urpmi apache2?
Thanks Ed.  Site is up. Host aeis.tv and virtual host
elevatorservice.us.

Question, more specifically.......

I have files that I need to make available to others.  I
have been pointing to them from the .html pages, but it
would be easier, especially on the temp stuff, to allow
anyone to access a directory on the server and get them.

I'm sure that sounds too simple for a question, since
everyone but me does it routinely, but ... oh well.

Lee

Something like http://clyde.aeis.tv/pictures gives 'em a
directory from whence to download pictures like
"clyde1.jpg"

I get a 404 error on http://clyde.aeis.tv/pictures, which tells me you have not set up a folder named pictures or a file named pictures under /var/www/html/.
you may want a "gallery" software to set up your photos kind of like
http://ed-tharp.is-a-geek.org/job/


or do you want a listing of files like in
http://ed-tharp.is-a-geek.org/3/


Exactly like the second example.  I know how to use the
'gallery', but can't seem to point to a directory.


you need to allow indexes or fancy indexes in the config file that covers that folder/url address.

there is no question it should only be done on a per directory basis, as it opens a security hole.

you should always check the configuration that the "parent directory" ".." choice does not permit going up into a folder you don't want folks transversing into...


<Directory /var/www/html/3>
    Options Indexes FollowSymLinks
AllowOverride All
</Directory>

on my install, would allow every folder including and below /var/www/html/3 to create it's index page 'on the fly' as long as there is NOT an index.xxx with xxx being any of a bunch of possible filename extensions pages like htm, html, php, asp. having an index page means the index page gets served up first.

--
reg. Linux User 167806
webhome http://ed-tharp.is-a-geek.org
____________________________________________________
Want to buy your Pack or Services from Mandriva? Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to