Tweak
03-24-2003, 03:11 PM
Please go to my site. You will see that there is a music folder and pictures... How do I edit that auto page It's like the index to show everything there has to be a way to change it...?
|
Click to See Complete Forum and Search --> : Help with Index Tweak 03-24-2003, 03:11 PM Please go to my site. You will see that there is a music folder and pictures... How do I edit that auto page It's like the index to show everything there has to be a way to change it...? Rune 03-26-2003, 03:30 PM What, am I the only one round hyah that knows even a little about Apache to help people out? :eek: ;) In your Apache>conf>httpd.conf file look for a line that says: Options Indexes FollowSymLinks ... and remove the "Indexes" part so it reads: Options FollowSymLinks save the httpd.conf file and then restart Apache to load the new configuration. I'm going from memory here since it's been awhile since I set that up (bugged the heck outta me too), so if that doesn't do it, lemme know. Tweak 03-26-2003, 04:25 PM Im wondering what will that do and I was wondering how I would add my banner to the index... Thats really what I was wondering how to do. Rune 03-26-2003, 08:36 PM Basically, Apache, by default allows "indexing" which means if someone types in a URL for your site and doesn't include a page or file name (ie like typing in "http://www.mydomain.com/pictures/"), the browser assumes it's a directory and Apache then tries to fill in the missing file with and index page from that folder by default (ie "http://www.mydomain.com/pictures/index.html") ... but if there IS NO index.html, index.htm, index.php, etc in that folder ... it'll just return an "Indexed" view of the folder itself (as you have above). To prevent people from simply viewing all of your webfolder's contents, you need to turn off the indexing feature by removing "Indexes" from the "Options" portion of the conf file per above. That way, if they type in the URL for a directory and there's no index file in that directory ... they'll get a "Forbidden - You don't have permission to access /pictures/ on this server." instead of a full view of all the folder's contents. If you're asking how to add a banner to that indexed folder view ... I don't believe you can. That page is not in your Apache folders, I believe it's a browser-system generated page. You might be able to do it by using frames though. Make a frame on the top inch of the window for the banner, then in the bottom frame have the directory view displayed. If that's what ya want, do a Google search for "HTML FRAMES TUTORIAL" and see what you come up with. Serverwatch.com
Copyright Internet.com Inc. All Rights Reserved. |