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 13:43:21 UTC
[users@httpd] index files in subdirectories
I have a server set up with Apache/2.0.55 (Win32), PHP/5.1.2, and Perl
(ActivePerl 5.8.8 Build 817).
My main index page (index.php) resides in my DocumentRoot directory and is
served by entering the url without the need to add index.php to the end.
This page has links to my company's bugzilla page and wiki page.
When setting up the links, if I add index.cgi (for Bugzilla) and index.php
(for wiki) to the end of the urls the browser navigates to those pages and
it all works ok but it I put a link in like http://blah.com/blah/ I get a
forbidden message.
Apache wont serve the default pages for subdirectories of my DocumentRoot
folder.
Does anyone know why this might be and how I may resolve this?
Karl
--
View this message in context: http://www.nabble.com/index-files-in-subdirectories-tf1930381.html#a5287072
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] index files in subdirectories
Posted by Ashutosh Mohanty <as...@syncad.com>.
its not "DocumentRoot directive" its "DirectoryIndex directive" :-)
ashutosh
----- Original Message -----
From: "Rob Wilkerson" <r....@gmail.com>
To: <us...@httpd.apache.org>
Sent: Wednesday, July 12, 2006 5:54 PM
Subject: Re: [users@httpd] index files in subdirectories
> Look for your DocumentRoot directive in your httpd.conf. It will (or
> should) contain a space-delimited list of file names (e.g. index.html
> index.cgi). Add "index.php" and you'll be all set.
>
> On 7/12/06, Karl@cometa <ka...@cometagames.com> wrote:
> >
> > I have a server set up with Apache/2.0.55 (Win32), PHP/5.1.2, and Perl
> > (ActivePerl 5.8.8 Build 817).
> >
> > My main index page (index.php) resides in my DocumentRoot directory and
is
> > served by entering the url without the need to add index.php to the end.
> >
> > This page has links to my company's bugzilla page and wiki page.
> >
> > When setting up the links, if I add index.cgi (for Bugzilla) and
index.php
> > (for wiki) to the end of the urls the browser navigates to those pages
and
> > it all works ok but it I put a link in like http://blah.com/blah/ I get
a
> > forbidden message.
> > Apache wont serve the default pages for subdirectories of my
DocumentRoot
> > folder.
> >
> > Does anyone know why this might be and how I may resolve this?
> >
> > Karl
> > --
> > View this message in context:
http://www.nabble.com/index-files-in-subdirectories-tf1930381.html#a5287072
> > 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
> >
> >
>
>
> --
>
> Rob Wilkerson
>
> ---------------------------------------------------------------------
> 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
[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
[users@httpd] RE: index files in subdirectories
Posted by "Karl@cometa" <ka...@cometagames.com>.
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
Re: [users@httpd] index files in subdirectories
Posted by Rob Wilkerson <r....@gmail.com>.
Sorry, I meant your DirectoryIndex directive, not your DocumentRoot
directive. :-)
On 7/12/06, Rob Wilkerson <r....@gmail.com> wrote:
> Look for your DocumentRoot directive in your httpd.conf. It will (or
> should) contain a space-delimited list of file names (e.g. index.html
> index.cgi). Add "index.php" and you'll be all set.
>
> On 7/12/06, Karl@cometa <ka...@cometagames.com> wrote:
> >
> > I have a server set up with Apache/2.0.55 (Win32), PHP/5.1.2, and Perl
> > (ActivePerl 5.8.8 Build 817).
> >
> > My main index page (index.php) resides in my DocumentRoot directory and is
> > served by entering the url without the need to add index.php to the end.
> >
> > This page has links to my company's bugzilla page and wiki page.
> >
> > When setting up the links, if I add index.cgi (for Bugzilla) and index.php
> > (for wiki) to the end of the urls the browser navigates to those pages and
> > it all works ok but it I put a link in like http://blah.com/blah/ I get a
> > forbidden message.
> > Apache wont serve the default pages for subdirectories of my DocumentRoot
> > folder.
> >
> > Does anyone know why this might be and how I may resolve this?
> >
> > Karl
> > --
> > View this message in context: http://www.nabble.com/index-files-in-subdirectories-tf1930381.html#a5287072
> > 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
> >
> >
>
>
> --
>
> Rob Wilkerson
>
--
Rob Wilkerson
---------------------------------------------------------------------
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] index files in subdirectories
Posted by Rob Wilkerson <r....@gmail.com>.
Look for your DocumentRoot directive in your httpd.conf. It will (or
should) contain a space-delimited list of file names (e.g. index.html
index.cgi). Add "index.php" and you'll be all set.
On 7/12/06, Karl@cometa <ka...@cometagames.com> wrote:
>
> I have a server set up with Apache/2.0.55 (Win32), PHP/5.1.2, and Perl
> (ActivePerl 5.8.8 Build 817).
>
> My main index page (index.php) resides in my DocumentRoot directory and is
> served by entering the url without the need to add index.php to the end.
>
> This page has links to my company's bugzilla page and wiki page.
>
> When setting up the links, if I add index.cgi (for Bugzilla) and index.php
> (for wiki) to the end of the urls the browser navigates to those pages and
> it all works ok but it I put a link in like http://blah.com/blah/ I get a
> forbidden message.
> Apache wont serve the default pages for subdirectories of my DocumentRoot
> folder.
>
> Does anyone know why this might be and how I may resolve this?
>
> Karl
> --
> View this message in context: http://www.nabble.com/index-files-in-subdirectories-tf1930381.html#a5287072
> 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
>
>
--
Rob Wilkerson
---------------------------------------------------------------------
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