Go Back  DVD Talk Forum > General Discussions > Tech Talk
Reload this Page >

What causes directories on the net to no longer be able to be viewed?

Tech Talk Discuss PC Hardware, Software, Internet and Other Technology

What causes directories on the net to no longer be able to be viewed?

Old 04-19-02, 10:24 PM
  #1  
Super Moderator
Thread Starter
 
RandyC's Avatar
 
Join Date: Aug 1999
Location: shine on you crazy diamond
Posts: 26,038
Likes: 0
Received 0 Likes on 0 Posts
What causes directories on the net to no longer be able to be viewed?

On my old server, as long as there was no index.html, I could view the directory contents. For one of my domains, I use this as a feature for people to download files. I moved to a new server and now I have no access to any directories. Having to create specific links to thousands of files would not be good.

I would like to know what I change to make this possible. What is the variable/setting.

Thanks!
Old 04-19-02, 10:51 PM
  #2  
DVD Talk Gold Edition
 
Join Date: Feb 1999
Location: HB, CA
Posts: 2,601
Likes: 0
Received 0 Likes on 0 Posts
It depends on the web server. Are you managing your own server or is there a hosting company that does it for you? If the latter, then you just need to contact them and let them know you want directory viewing to be enabled. If you're managing your own server, then it depends on what web server software you're running.
Old 04-19-02, 11:33 PM
  #3  
Super Moderator
Thread Starter
 
RandyC's Avatar
 
Join Date: Aug 1999
Location: shine on you crazy diamond
Posts: 26,038
Likes: 0
Received 0 Likes on 0 Posts
Well, unfortunately for me, I am managing my own server now. Horrorshow that it is.

It is running Apache on FreeBSD using a Plesk interface. Does that help?

Thanks!
Old 04-19-02, 11:52 PM
  #4  
DVD Talk Legend
 
Join Date: Jan 2000
Posts: 16,173
Likes: 0
Received 0 Likes on 0 Posts
Randy

In Apache, you must turn on MULTIVIEWS for the directory you want to display like that.


for example:


< Directory G:/apache/files >
Order Deny,Allow
Options Indexes FollowSymLinks MultiViews
allow from all
< /Directory >


from Apache.org

Multiviews
MultiViews is a per-directory option, meaning it can be set with an Options directive within a <Directory>, <Location> or <Files> section in access.conf, or (if AllowOverride is properly set) in .htaccess files. Note that Options All does not set MultiViews; you have to ask for it by name.

The effect of MultiViews is as follows: if the server receives a request for /some/dir/foo, if /some/dir has MultiViews enabled, and /some/dir/foo does not exist, then the server reads the directory looking for files named foo.*, and effectively fakes up a type map which names all those files, assigning them the same media types and content-encodings it would have if the client had asked for one of them by name. It then chooses the best match to the client's requirements.

MultiViews may also apply to searches for the file named by the DirectoryIndex directive, if the server is trying to index a directory. If the configuration files specify

DirectoryIndex index
then the server will arbitrate between index.html and index.html3 if both are present. If neither are present, and index.cgi is there, the server will run it.
If one of the files found when reading the directive is a CGI script, it's not obvious what should happen. The code gives that case special treatment --- if the request was a POST, or a GET with QUERY_ARGS or PATH_INFO, the script is given an extremely high quality rating, and generally invoked; otherwise it is given an extremely low quality rating, which generally causes one of the other views (if any) to be retrieved.
Old 04-20-02, 03:41 AM
  #5  
Super Moderator
Thread Starter
 
RandyC's Avatar
 
Join Date: Aug 1999
Location: shine on you crazy diamond
Posts: 26,038
Likes: 0
Received 0 Likes on 0 Posts
Cool....but how do I set the multiviews in Apache?

Just ask DarkElf to do it?
Old 04-20-02, 04:32 AM
  #6  
DVD Talk Gold Edition
 
Join Date: Feb 1999
Location: HB, CA
Posts: 2,601
Likes: 0
Received 0 Likes on 0 Posts
Originally posted by RandyC
Cool....but how do I set the multiviews in Apache?

Just ask DarkElf to do it?
Yeah, leave a six pack of premium beer next to the keyboard overnight. Come morning, your web server should be magically configured.

Old 04-22-02, 01:23 PM
  #7  
Super Moderator
Thread Starter
 
RandyC's Avatar
 
Join Date: Aug 1999
Location: shine on you crazy diamond
Posts: 26,038
Likes: 0
Received 0 Likes on 0 Posts
Help.

I can't figure out what exactly I am supposed to do from the command line in my server. That above looks like a script in a file. I am just more confused when I read the stuff at apache.org
Old 04-23-02, 04:28 PM
  #8  
DVD Talk Legend
 
Join Date: Jul 2000
Location: chokin' you out in less than 30 seconds
Posts: 10,634
Likes: 0
Received 0 Likes on 0 Posts
Originally posted by RandyC
Help.

I can't figure out what exactly I am supposed to do from the command line in my server. That above looks like a script in a file. I am just more confused when I read the stuff at apache.org
randy,

open your .htaccess file and tell us what it says in there.

like 4krg says, it should read:

Code:
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.crankyman.org
AuthUserFile /home/sites/site130/web/_vti_pvt/service.pwd
AuthGroupFile /home/sites/site130/web/_vti_pvt/service.grp
or something very similar (with your paths obviously).

let us know....
Old 04-23-02, 04:48 PM
  #9  
DVD Talk Legend
 
Join Date: Jan 2000
Posts: 16,173
Likes: 0
Received 0 Likes on 0 Posts
Originally posted by RandyC
Help.

I can't figure out what exactly I am supposed to do from the command line in my server. That above looks like a script in a file. I am just more confused when I read the stuff at apache.org
Whoops, thought it was obvious from above

Edit your httpd.conf file and add the line in bold to the directory you want to display the list of files.


< Directory G:/apache/files >
Order Deny,Allow
Options Indexes FollowSymLinks MultiViews
allow from all
< /Directory >


your directory names will vary and so will all the text not in bold.
Old 04-23-02, 07:59 PM
  #10  
Super Moderator
Thread Starter
 
RandyC's Avatar
 
Join Date: Aug 1999
Location: shine on you crazy diamond
Posts: 26,038
Likes: 0
Received 0 Likes on 0 Posts
It would be best when dealing with me and server issues to not assume the obvious.

Thanks. I didn't know it was a file called htaccess

It now works. I am happy. My client base is happy. Birds are singing.
Old 04-24-02, 09:20 AM
  #11  
DVD Talk Legend
 
Join Date: Jul 2000
Location: chokin' you out in less than 30 seconds
Posts: 10,634
Likes: 0
Received 0 Likes on 0 Posts
Originally posted by RandyC
It would be best when dealing with me and server issues to not assume the obvious.

Thanks. I didn't know it was a file called htaccess

It now works. I am happy. My client base is happy. Birds are singing.
cool beans.

how's the racing going?

cranky.
Old 04-24-02, 02:59 PM
  #12  
Super Moderator
Thread Starter
 
RandyC's Avatar
 
Join Date: Aug 1999
Location: shine on you crazy diamond
Posts: 26,038
Likes: 0
Received 0 Likes on 0 Posts
Originally posted by crankyman


cool beans.

how's the racing going?

cranky.
Racing is going well. Still leading on the west coast in my class, we go onto Northern Cal next.

crandy

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 On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Thread Tools
Search this Thread

Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service - Do Not Sell My Personal Information

Copyright 2018 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.