Directory index forbidden by Options directive error on specific directory with indexing disabled


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Top Forums Web Development Directory index forbidden by Options directive error on specific directory with indexing disabled
# 1  
Directory index forbidden by Options directive error on specific directory with indexing disabled

I am seeing the following error appear numerous times in my Apache error log:

Quote:
[... Jan 19 17:10:55 2014] [client 101.226.89.117] Directory index forbidden by Options directive: /var/www/vhosts/ayrshireminis.com/web/scripts/jquery/plugins/cloud-zoom/
I have my Apache config configured as below, so I would expect indexing not to occur on this directory as it falls under the parent /web directory.

Quote:
<Directory "/var/www/vhosts/ayrshireminis.com/web/">
AllowOverride None
Allow From All
Options -Indexes
...
</Directory>
Strangely all the IP address, including this example, all originate in China - so I don't know if it is some strange screen-scraping software that is scraping my site.

I have the CloudZoom path in my source, but there are about 6-10 other jQuery plugins in the same directory that do not show up the same error in the logs.
# 2  
If it's trying to index that folder, that likely means there's no index.html or index.php in there, so it falls back to indexing, which fails since that's disabled, and causes an error.

Not all errors are server errors. Unless there's a really good reason to allow indexes there, I'd leave it off.
# 3  
Quote:
Originally Posted by Corona688
If it's trying to index that folder, that likely means there's no index.html or index.php in there, so it falls back to indexing, which fails since that's disabled, and causes an error.

Not all errors are server errors. Unless there's a really good reason to allow indexes there, I'd leave it off.
Yes, there's definitely no index.html or index.php script in that directory (as you would expect as it's a directory for storing JavaScript that belongs to a jQuery plugin).

I'm not sure I follow you in terms of "leaving it off". I was under the impression that my current configuration meant that the directory shouldn't be indexed?

I don't want it to be indexed as it is just a directory for holding JavaScript.
# 4  
Quote:
Originally Posted by crmpicco
I'm not sure I follow you in terms of "leaving it off". I was under the impression that my current configuration meant that the directory shouldn't be indexed?
It isn't indexed -- If anyone asks for one they get 'denied'.
# 5  
Quote:
Originally Posted by Corona688
It isn't indexed -- If anyone asks for one they get 'denied'.
OK, so what would you suggest doing to prevent this from appearing in my error log?
# 6  
Quote:
Originally Posted by crmpicco
OK, so what would you suggest doing to prevent this from appearing in my error log?
I suppose you could put an index file in there for them to find...

Of course, then you won't be told when they do this.
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #258
Difficulty: Medium
Iannis Xenakis wrote programs in the FORTRAN language that generated numeric data that he transcribed into scores to be played by traditional musical instruments.
True or False?

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to search in specific directory using find?

Hi, Is there any way to use find command and search only specific subdirectories in a directory. for example /home/d1 /home/d2 /home/d3 i want to search in the following directories /home /home/d1 /home/d2 i do not want the find command to search the /home/d3 directory. (6 Replies)
Discussion started by: Little
6 Replies

2. Shell Programming and Scripting

Shell scripting-I need a script which should watch a directory for a file with specific directory

I need a script which should watch a directory for a file with specific directory. If it finds a file in directory, it should search for few specific keyword in the file. if the keyword exists, it should trim string from specific column. The file should be moved to another directory and the a... (8 Replies)
Discussion started by: akashdeepak
8 Replies

3. UNIX for Dummies Questions & Answers

How to search directory for specific file?

I am new to Unix scripting and would like some help. Here is my scenario: 1) I have a text files that contains two fields: file name and retention period in months: File1 36 file2 24 File3 12 2) The directory I am searching contains sequential files. 3) I need to be able to take the file name... (10 Replies)
Discussion started by: Mustafa19804
10 Replies

4. Shell Programming and Scripting

Specific directory parsing in a directory tree

Hi friends, Hello again :) i got stuck in problem. Is there any way to get a special directory from directory tree? Here is my problm.." Suppose i have one fix directory structure "/abc/xyz/pqr/"(this will be fix).Under this directory structure i have some other directory and... (6 Replies)
Discussion started by: harpal singh
6 Replies

5. UNIX for Advanced & Expert Users

allow user to use sudo cp on a specific directory and only a specific file

Is there a way to allow a user to use sudo cp on a specific directory and only a specific file? (6 Replies)
Discussion started by: cokedude
6 Replies

6. Shell Programming and Scripting

users who have un-sanctioned(forbidden) files in their home directory.

Hello guys, I have to create a sh script which return users who have un-sanctioned(forbidden) files in their home directory. I tried to do: #!/bin/sh -x SHADOW_FILE="/etc/shadow" PASSWORD_FILE="/etc/passwd" for i in `grep -v '^+' $PASSWORD_FILE | cut -d: -f1,6` do username=`echo... (6 Replies)
Discussion started by: catalint
6 Replies

7. Shell Programming and Scripting

Run SED for all index.jsp files across a directory structure.

Hi, I am a novice and require help once again. I have a over 200 file all called index.jsp placed in different directories The following Sed command gives me the data of all included jsp files in index.jsp sed -n -e 's/^.*page="\(*\).*$/\1/p' index.jsp How can I run the above... (6 Replies)
Discussion started by: rajkdutta
6 Replies

8. Shell Programming and Scripting

Umask a specific directory

Is there a way to umask only a specific directory? I want that everyone who add a NEW file in this folder gets its file moded 700. But that adding it in any other folder still moded as default. Excuse my poor English! I'm not a native speaker Thanks in advance... (4 Replies)
Discussion started by: funyotros
4 Replies

9. HP-UX

Getting the index of the last entry in a directory

Hello, Is there anyway of getting the index of the last entry in a directory? I'm using a C program to read the entries, but I want to go to the last entry because the directory is very big and I don't want to read all. I was using the size of the directory file descriptor but when I remove... (4 Replies)
Discussion started by: psimoes79
4 Replies

Featured Tech Videos