hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Hosting Security and Technology Tutorials : How to remove the permission in apache to allow users to browse a folder.
Reply

Hosting Security and Technology Tutorials Tutorials related to server security or the like.
Forum Jump

How to remove the permission in apache to allow users to browse a folder.

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-05-2005, 07:33 AM
jonathan184 jonathan184 is offline
Junior Guru Wannabe
 
Join Date: Feb 2005
Posts: 34
Red face

How to remove the permission in apache to allow users to browse a folder.


How to remove the permission in apache to allow users to browse a folder? MY images folder currently saids do not have permission to browse, how do i take this off in apache because i want to hot link in the folder and see the listing of files. Could you tell me what file to edit and what lines to put or remove.

Thanks in advance.

Reply With Quote


Sponsored Links
  #2  
Old 07-06-2005, 12:00 AM
jamesyeeoc jamesyeeoc is offline
Junior Guru
 
Join Date: Dec 2003
Location: Sunny So. Calif.
Posts: 204
Edit your httpd.conf (global effect) or domain's httpd.include or vhost.conf (per domain effect) file, if you go global (not recommended) find the line 'Options' and add '+Indexes' to the line.

On a per domain basis you can add to vhost.conf or http.include:

<Directory /home/httpd/vhosts/domain.com/httpdocs/foldername>
Options +Indexes
</Directory>

to affect a specific folder. Adjust the actual path according to your particular server.

These are just a couple of examples, there may be others....

Reply With Quote
  #3  
Old 07-12-2005, 07:37 AM
jonathan184 jonathan184 is offline
Junior Guru Wannabe
 
Join Date: Feb 2005
Posts: 34
Thanks so much i found the full path , what i am trying to do is togrant access to visitors to browse a images folder where i am currently getting a 403 error.

i put this code in the httpd.conf

<Directory /home/virtual/domain.com/images>
Options +Indexes
</Directory>

Restarted apache server

I still get a 403 forbidden error You don't have permission to access /catalog/images/ on this server.

Is there something i am doing wrong?

Reply With Quote
Sponsored Links
  #4  
Old 07-12-2005, 08:07 AM
jamesyeeoc jamesyeeoc is offline
Junior Guru
 
Join Date: Dec 2003
Location: Sunny So. Calif.
Posts: 204
First, you put ~/domain.com/images , but the error says you tried to access ~/domain.com/catalog/images

So you should modify the httpd.conf to make sure you reference the proper folder.

Then you should also then check the ownership of the proper folder and files. Whichever is the correct one: /domain.com/images or /domain.com/catalog/images. Depending on your exact control panel software it may need to be one of the following:

apache : apache
nobody : nobody

For Plesk it would be:
ftpusername : psacln or ftpusername : psaserv

If you look at the actual domain's document root and see the uid : gid ownership, that may give you a clue to what the other sub-folders should be.

Again, as I stated earlier, you may want to do this per domain in a vhost.conf or vhost_ssl.conf file, rather than doing it globally.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
nginx Sees Largest Market Share Growth in Netcraft March Server Survey Web Hosting News 2012-03-05 14:05:29
Apache Web Server Adds Cloud Capabilities with First Major Update in 5 Years Web Hosting News 2012-02-21 16:05:02
Pancake.io, DropPages Let Users Host Web Site Files on DropBox Blog 2011-12-08 17:03:11
Oracle is the Latest Vendor to Apply Patch for Apache Killer Flaw Web Hosting News 2011-09-19 14:43:58
Patch Released for Apache Software DDoS Vulnerability Web Hosting News 2011-08-26 15:03:10


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 On
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?