Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-15-2004, 02:34 PM   PM User | #1
Jan
Regular Coder

 
Join Date: Jul 2002
Location: Finland
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Jan will become famous soon enough
List files in Apache folder

Hi!

How can I get the files listed that are on my Apache server? I'm running a localhost, and the directory listing won't show. What should I do?


~Jan
__________________
scanactive.com
Jan is offline   Reply With Quote
Old 06-17-2004, 09:29 PM   PM User | #2
arnyinc
Regular Coder

 
Join Date: Jan 2003
Posts: 867
Thanks: 4
Thanked 8 Times in 8 Posts
arnyinc is an unknown quantity at this point
In your httpd.conf file you should have a Directory block for your root web directory. Mine looks like this after I removed a lot of comments (your's might be slightly different):

<Directory "C:/Program Files/Apache Group/Apache2/htdocs">
Options Indexes Includes
Order allow,deny
Allow from all
</Directory>

You want to delete "Indexes" from the first line within the block so you now have:

<Directory "C:/Program Files/Apache Group/Apache2/htdocs">
Options Includes
Order allow,deny
Allow from all
</Directory>

Then I think you have to restart apache.

If there are other directories that you want to browse such as the /icons then do the same for those blocks.
arnyinc is offline   Reply With Quote
Old 06-18-2004, 11:07 AM   PM User | #3
Jan
Regular Coder

 
Join Date: Jul 2002
Location: Finland
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Jan will become famous soon enough
arnyinc: Thanks for your reply. Unfortunately, it didn't work Should I post the httpd.conf file for you to take a look at, or isn't that a good idea?


~Jan
__________________
scanactive.com
Jan is offline   Reply With Quote
Old 06-18-2004, 03:19 PM   PM User | #4
bcarl314
Mega-ultimate member


 
Join Date: Jun 2002
Location: Winona, MN - The land of 10,000 lakes
Posts: 1,855
Thanks: 1
Thanked 45 Times in 42 Posts
bcarl314 will become famous soon enough
Doesn't the "Indexes" option allow for indexing? Not dis-allow?
bcarl314 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 Off

Forum Jump


All times are GMT +1. The time now is 01:22 PM.


Advertisement
Log in to turn off these ads.