You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Karl@cometa" <ka...@cometagames.com> on 2006/07/12 14:53:13 UTC
[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.
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>/
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] RE: RE: index files in subdirectories
Posted by "Karl@cometa" <ka...@cometagames.com>.
SOLVED IT!
I realised I'd tried setting the directories settings to the same as the
DocumentRoot and I'd tried taking out the script aliases but I'd not tried
doing both at once. When I did that it worked.
Thanks for all you help folks.
Karl
--
View this message in context: http://www.nabble.com/index-files-in-subdirectories-tf1930381.html#a5289676
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] RE: RE: index files in subdirectories
Posted by "Karl@cometa" <ka...@cometagames.com>.
The error I get with the scriptaliases removed is:
[Wed Jul 12 14:58:25 2006] [error] [client <snip>] Options ExecCGI is off in
this directory: D:/Websites/gateway/cometazilla/index.cgi, referer:
http://<snip>/
--
View this message in context: http://www.nabble.com/index-files-in-subdirectories-tf1930381.html#a5289166
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] RE: RE: index files in subdirectories
Posted by "Karl@cometa" <ka...@cometagames.com>.
Ah...well I do have the lines:
ScriptAlias /cometawiki/ "D:/Websites/gateway/cometawiki/"
ScriptAlias /cometazilla/ "D:/Websites/gateway/cometazilla/"
in my httpd.conf but if I remove them I still get the forbidden message but
now I also get them when I use the full url i.e. even using
./cometawiki/index.php brings up the forbidden message when formerly this
processed the page.
--
View this message in context: http://www.nabble.com/index-files-in-subdirectories-tf1930381.html#a5289031
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] RE: index files in subdirectories
Posted by "Karl@cometa" <ka...@cometagames.com>.
I'm running apache on a Windows 2003 Server machine (not my choice of
operating system :P) so I can't run chown :(
My directory settings are:
<Directory "D:/Websites/gateway">
Options Indexes FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
ScriptInterpreterSource Registry-Strict
</Directory>
<Directory "D:/Websites/gateway/cometawiki">
Options All
#Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory "D:/Websites/gateway/cometazilla">
Options All
#Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Do I need to do something here or do I need to go to change the folder
permissions on the security tab in Windows?
--
View this message in context: http://www.nabble.com/index-files-in-subdirectories-tf1930381.html#a5288322
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] RE: index files in subdirectories
Posted by Ashutosh Mohanty <as...@syncad.com>.
Okay, this is due to the permission problem
look at your user /group setting in apache httpd.conf, and then go to the
respective directory and change those ownership according to that
like
# chown user.group <directory name> (do it as a sudo user)
----- Original Message -----
From: "Karl@cometa" <ka...@cometagames.com>
To: <us...@httpd.apache.org>
Sent: Wednesday, July 12, 2006 6:23 PM
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.
>
>
> 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>/
>
> 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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org