Web Servers General Talk - Directory index forbidden by rule:/var/www/html/

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > August 2004 > Directory index forbidden by rule:/var/www/html/





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Directory index forbidden by rule:/var/www/html/
sardarindianpunjabi

2004-08-09, 8:49 pm

To be precise lemme tell you what behaviour am i facing.I have
developed an ASP.NET application using C# and i want to run it on RHL
9.0/Apache2.0 using mod_mono Mono 1.0.I have installed everything
successfully(i guess so) from Daniel's notes step by step.Now if i run
the same application under windows/IIS it runs PERFECT absolutely but
when i run it under RHL 9.0/Apache 2.0/mod_mono/Mono 1.0, i get the
weird behaviour.It run fine for some time...but after some time it
seems that the connection to the server is lost if the application is
left idle(probably 30 minutes).It starts giving the SERVER ERROR HTTP
500 for this particular application.If i try accessing the other
directory under root i.e /mrtg that also works fine but the problem is
with this particular application only which use C# with mono run
time.In order to fix that problem i need to restart the linux box and
everything starts running perfectly.I dont know what the problem lies
in and how to fix that up. I am using Session variables. I haven't
checked the cookie settings on my Windows and redhat box, but I'd like
to know and change any setting that can run my web app without
crashing. Any help or useful links will be of great help.I have
checked out the error_log file and it says that [client 10.6.10.19]
Directory index forbidden by rule: /var/www/html/. If i reboot the
linux box now it will start working perfectly without changing any
permissions at all . btw the permission to the directory where i have
placed my app is 777 and its chowned by apache and groupd is also
apache.
All the help will be highly appreciated.Somebody please help...to
figure out this behaviour
Tim

2004-08-10, 6:01 pm

On 9 Aug 2004 19:24:30 -0700,
sardarindianpunjabi@hotmail.com (sardarindianpunjabi) posted:

I can't help with the other stuff, just this:

> ...[snip]... RHL 9.0/Apache2.0 ...[snip]...
> Directory index forbidden by rule: /var/www/html/. If i reboot the
> linux box now it will start working perfectly without changing any
> permissions at all. btw the permission to the directory where i have
> placed my app is 777 and its chowned by apache and groupd is also
> apache.


The directory index forbidden is a different situation that the permissions
applied within the file system, though you definitely don't want to give
write permission to the "other" users (everybody), make it 775
(owner=read+write+execute, group=read+write+execute, world=read+execute).

If you want people to be able to generate an index for a directory that
doesn't have a default page, you need to play with autoindex option rules.

See: <http://httpd.apache.org/docs-2.0/mod/mod_autoindex.html>

You'll need something like the following within your directory statement
for the document root (or for some subdirectory that you want to control
rather than the document root directory):

<Directory /var/www/html>
Options +Indexes
</Directory>

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Tim

2004-08-15, 5:53 pm

On 9 Aug 2004 19:24:30 -0700,
sardarindianpunjabi@hotmail.com (sardarindianpunjabi) posted:

I can't help with the other stuff, just this:

> ...[snip]... RHL 9.0/Apache2.0 ...[snip]...
> Directory index forbidden by rule: /var/www/html/. If i reboot the
> linux box now it will start working perfectly without changing any
> permissions at all. btw the permission to the directory where i have
> placed my app is 777 and its chowned by apache and groupd is also
> apache.


The directory index forbidden is a different situation that the permissions
applied within the file system, though you definitely don't want to give
write permission to the "other" users (everybody), make it 775
(owner=read+write+execute, group=read+write+execute, world=read+execute).

If you want people to be able to generate an index for a directory that
doesn't have a default page, you need to play with autoindex option rules.

See: <http://httpd.apache.org/docs-2.0/mod/mod_autoindex.html>

You'll need something like the following within your directory statement
for the document root (or for some subdirectory that you want to control
rather than the document root directory):

<Directory /var/www/html>
Options +Indexes
</Directory>

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com