How do I make this kind of site? (n00b)

Soldato
Joined
8 Aug 2004
Posts
9,341
Location
Shropshire
Hi guys, I'm very much a n00b at this kind of stuff, I was just wondering how to make a directory kinda thing for files I upload onto my site etc? I'm thinking it looks and probably is very simple but I've no idea, meh

Like this:
grr9dq.jpg


Thanks for any help :)
 
robmiller said:
Most webservers will do it automatically when you browse to a directory without a custom index file in it.

Hmm. I must be doing something wrong, I've created a subdirectory, ftp'd some images into it, and not created an index file, but when I browse it I get a 403 forbidden, no permission etc... :confused: I'm using f2s if that makes any difference?
 
Doohickey said:
Hmm. I must be doing something wrong, I've created a subdirectory, ftp'd some images into it, and not created an index file, but when I browse it I get a 403 forbidden, no permission etc... :confused: I'm using f2s if that makes any difference?

You're not doing anything wrong, it just means that F2S have their webserver setup to not allow directory listings, hence the 403 you get.

Webservers can be set to give you a directory listing on the absence of index.html/index.php/whatever or they can be set to refuse to give directory listings as has been done in this case.
 
Any webserver should do it.

Apache is the one I know, they call it 'Indexes' and a config example would be something like (grabbed from one of my servers then modified to allow it):

<Directory /www/htdocs/>
Options +Indexes
</Directory>
 
Yup - just make a file called 'htaccess' in Notepad and in it put the single line "Options +Indexes" then upload it to the directory you want to see (it'll also affect all subdirectories) and rename it to ".htaccess" (reason for the rename is becuase Windows is funny about creating files with nothing before the full stop).

If that doesn't work (or gives an error) then they've not setup Apache (presumin g they run Apache) to allow the setting :eek: :)
 
Back
Top Bottom