hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Help with .htaccess
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Help with .htaccess

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-15-2001, 01:56 PM
JoeB JoeB is offline
Junior Guru Wannabe
 
Join Date: Sep 2000
Location: Boston
Posts: 64
What do i need to put in my .htaccess file so the files of a directory are not listed when there is no index.html file.

Thanks

Reply With Quote


Sponsored Links
  #2  
Old 02-15-2001, 05:07 PM
jtan15 jtan15 is offline
Aspiring Evangelist
 
Join Date: Jul 2000
Posts: 382
You'll need to put this in the .htaccess file:

Options -Indexes

If this doesn't work, you'll need to insert this code into httpd.conf:

<Directory /path/to/directory>
AllowOverride Indexes
</Directory>

Hope this helps!

Reply With Quote
  #3  
Old 02-19-2001, 01:42 PM
JoeB JoeB is offline
Junior Guru Wannabe
 
Join Date: Sep 2000
Location: Boston
Posts: 64
Talking

Thanks! Worked like a charm.

Reply With Quote
Sponsored Links
  #4  
Old 02-19-2001, 05:02 PM
jtan15 jtan15 is offline
Aspiring Evangelist
 
Join Date: Jul 2000
Posts: 382
No problem, Joe.

Reply With Quote
  #5  
Old 02-19-2001, 05:29 PM
Pingu Pingu is offline
Junior Guru
 
Join Date: Jan 2001
Location: Netherlands
Posts: 236
Should this be done for every single directory, or is there a way to make this, umm, default...

Reply With Quote
  #6  
Old 02-19-2001, 05:37 PM
jtan15 jtan15 is offline
Aspiring Evangelist
 
Join Date: Jul 2000
Posts: 382
Pingu,

In your httpd.conf file, you can insert this line:

Options -Indexes

But chances are you already have an "Options" line. So find that line in the config file and put a hyphen infront of Indexes. Or you can just delete Indexes from the list.

Reply With Quote
  #7  
Old 02-20-2001, 01:36 AM
sodapopinski sodapopinski is offline
Web Hosting Master
 
Join Date: Oct 2000
Posts: 550
Quote:
Originally posted by Pingu
Should this be done for every single directory, or is there a way to make this, umm, default...
Yes, if you put that .htaccess file into your main public html dir (for example: /home/yourname/htdocs), it will affect every single dir.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Go Daddy Helping Customers Repair Compromised Sites Web Hosting News 2011-09-16 14:35:03


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?