directory listing

This is a discussion on directory listing within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi I have apache 2.0.54 working fine but I need to do directory listing on only 1 directory ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-12-2006
miguel-lopes
 
Posts: n/a
Default directory listing

Hi
I have apache 2.0.54 working fine but I need to do directory listing on only
1 directory how cam I do it??

The idea is to creat a directory called downloads and let people navigate in
this directory and download the files it will have password protection.


Thanks



  #2 (permalink)  
Old 10-12-2006
MikeDawg
 
Posts: n/a
Default Re: directory listing


miguel-lopes wrote:
> Hi
> I have apache 2.0.54 working fine but I need to do directory listing on only
> 1 directory how cam I do it??
>
> The idea is to creat a directory called downloads and let people navigate in
> this directory and download the files it will have password protection.
>
>
> Thanks


There are a couple ways to do this, but pretty much, the key is to use
Options +indexes in order to get a directory listing.

You can do this either from an .htaccess file, or you can do this from
the main apache httpd.conf file.

  #3 (permalink)  
Old 10-12-2006
miguel-lopes
 
Posts: n/a
Default Re: directory listing



"MikeDawg" <mikedawg@gmail.com> escreveu na mensagem
news:1160670855.676150.72010@m7g2000cwm.googlegrou ps.com...
>
> miguel-lopes wrote:
> > Hi
> > I have apache 2.0.54 working fine but I need to do directory listing on

only
> > 1 directory how cam I do it??
> >
> > The idea is to creat a directory called downloads and let people

navigate in
> > this directory and download the files it will have password protection.
> >
> >
> > Thanks

>
> There are a couple ways to do this, but pretty much, the key is to use
> Options +indexes in order to get a directory listing.
>
> You can do this either from an .htaccess file, or you can do this from
> the main apache httpd.conf file.
>


Thanks!

Found this sintax on the net and tryied it


<Directory /downloads>
Options FollowSymLinks Indexes
AllowOverride None
</Directory >

But still doesn't work what am I doing wrong??
thanks


  #4 (permalink)  
Old 10-12-2006
miguel-lopes
 
Posts: n/a
Default Re: directory listing

"miguel-lopes" <milopes@hotmail.com> escreveu na mensagem
news:kpWdnY8EHrz57rPYRVnysw@novis.pt...
>
>
> "MikeDawg" <mikedawg@gmail.com> escreveu na mensagem
> news:1160670855.676150.72010@m7g2000cwm.googlegrou ps.com...
> >
> > miguel-lopes wrote:
> > > Hi
> > > I have apache 2.0.54 working fine but I need to do directory listing

on
> only
> > > 1 directory how cam I do it??
> > >
> > > The idea is to creat a directory called downloads and let people

> navigate in
> > > this directory and download the files it will have password

protection.
> > >
> > >
> > > Thanks

> >
> > There are a couple ways to do this, but pretty much, the key is to use
> > Options +indexes in order to get a directory listing.
> >
> > You can do this either from an .htaccess file, or you can do this from
> > the main apache httpd.conf file.
> >

>
> Thanks!
>
> Found this sintax on the net and tryied it
>
>
> <Directory /downloads>
> Options FollowSymLinks Indexes
> AllowOverride None
> </Directory >
>
> But still doesn't work what am I doing wrong??
> thanks
>
>


Thanks anyway I found it after doing some tries

<Directory /srv/www/htdocs/download>
Options FollowSymLinks +Indexes
AllowOverride None
</Directory>


Um other thing how can I avoid apearing this

Apache/2.0.54 (Linux/SUSE) Server at 192.168.10.222 Port 80

or this


192.168.10.222
Thu Oct 12 18:07:59 2006
Apache/2.0.54 (Linux/SUSE)


Thanks


  #5 (permalink)  
Old 10-12-2006
HansH
 
Posts: n/a
Default Re: directory listing

"miguel-lopes" <milopes@hotmail.com> schreef in bericht
news:kpWdnY8EHrz57rPYRVnysw@novis.pt...
> Found this sintax on the net and tryied it
> <Directory /downloads>
> Options FollowSymLinks Indexes
> AllowOverride None
> </Directory >
>
> But still doesn't work what am I doing wrong??

If your link to a download-file looks like
http://my.server.org/downloads/here/is/afile4u.gz
try <Location /downloads>

HansH


  #6 (permalink)  
Old 10-13-2006
MikeDawg
 
Posts: n/a
Default Re: directory listing

miguel-lopes wrote:
> "miguel-lopes" <milopes@hotmail.com> escreveu na mensagem
> news:kpWdnY8EHrz57rPYRVnysw@novis.pt...
> >
> >
> > "MikeDawg" <mikedawg@gmail.com> escreveu na mensagem
> > news:1160670855.676150.72010@m7g2000cwm.googlegrou ps.com...
> > >
> > > miguel-lopes wrote:
> > > > Hi
> > > > I have apache 2.0.54 working fine but I need to do directory listing

> on
> > only
> > > > 1 directory how cam I do it??
> > > >
> > > > The idea is to creat a directory called downloads and let people

> > navigate in
> > > > this directory and download the files it will have password

> protection.
> > > >
> > > >
> > > > Thanks
> > >
> > > There are a couple ways to do this, but pretty much, the key is to use
> > > Options +indexes in order to get a directory listing.
> > >
> > > You can do this either from an .htaccess file, or you can do this from
> > > the main apache httpd.conf file.
> > >

> >
> > Thanks!
> >
> > Found this sintax on the net and tryied it
> >
> >
> > <Directory /downloads>
> > Options FollowSymLinks Indexes
> > AllowOverride None
> > </Directory >
> >
> > But still doesn't work what am I doing wrong??
> > thanks
> >
> >

>
> Thanks anyway I found it after doing some tries
>
> <Directory /srv/www/htdocs/download>
> Options FollowSymLinks +Indexes
> AllowOverride None
> </Directory>
>
>
> Um other thing how can I avoid apearing this
>
> Apache/2.0.54 (Linux/SUSE) Server at 192.168.10.222 Port 80
>
> or this
>
>
> 192.168.10.222
> Thu Oct 12 18:07:59 2006
> Apache/2.0.54 (Linux/SUSE)
>
>
> Thanks


http://httpd.apache.org/docs/2.0/mod...l#servertokens

 


Thread Tools
Display Modes

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:14 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0