RE: [users@httpd] RE: index files in subdirectories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Karl@cometa [mailto:karl@xxxxxxxxxxxxxxx] 
> Sent: Wednesday, July 12, 2006 2:53 PM
> To: users@xxxxxxxxxxxxxxxx
> Subject: [users@httpd] RE: index files in subdirectories
> 
> 
> My directory index is already set to:
> 
> DirectoryIndex index.cgi index.php index.html index.html.var
> 
> but I'm still getting this problem.
> 
> 
> The messages I get are:
> 
> Forbidden
> You don't have permission to access /cometawiki/ on this server.
> 
> Forbidden
> You don't have permission to access /cometazilla/ on this server.

This is not necessarily a permissions problem - a mod_access "Deny" also
gives this message. That's why it's important to check the error logs.

read on....

> 
> 
> My Document root directory has index.php in it and this does 
> automatically
> load when I navigate to the directory. 
> cometawiki and cometazilla are subdirectories of the 
> DocumentRoot directory
> and have index.php and index.cgi in them respectively.
> 
> If I put the links in the main index file as 
> ./cometawiki/index.php and
> ./cometawiki/index.cgi they load if I put them as ./cometawiki/ and
> ./cometazilla/ it doesn't load them, it gives the forbidden 
> message above.
> 
> 
> The error log says:
> 
> [Wed Jul 12 13:48:49 2006] [error] [client <snip>] attempt to invoke
> directory as script: D:/Websites/gateway/cometawiki/, referer:
> http://<snip>/

OK - here's the problem. You are attempting to invoke a directory as if
it were a script. That is, you're trying to "execute" the directory
(obviously, that can't be done). I guess you have a misconfiguration
(ScriptAlias pointing to that dir, or AddHandler)? I actually can't
think how you can get that to happen... congratulations.

NB - that's yet another way to get a "forbidden" message; hence the
importance of error logs.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> 
> I've snipped out the ip and url so I don't get loads of trash from
> webcrawlers :P
> 
> gateway is my DocumentRoot directory where initial index.php is stored
> -- 
> View this message in context: 
> http://www.nabble.com/index-files-in-subdirectories-tf1930381.
html#a5288054
> Sent from the Apache HTTP Server - Users forum at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
 
 
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux