MrCBofBCinTX
Technical User
have default entry of:
<Directory />
order deny,allow
deny from all
</directory>
I can't get rid of the forbidden error without using
<Directory /*> (or /*/ etc)
order allow,deny
allow from all
</directory>
Trying to allow the directories that are the document root fails consistently with every combination. The directories have all the correct permisisons. DirectoryIndex directives don't work, giving a forbidden error for /index.html which exists
I am using chroot and suexec, both of which seem to be working correctly
I am using /var/ to avoid recompiling apache for suexec
<Directory /var/ order allow,deny
allow from all
directoryIndex index.html welcome.html
</directory>
<Directory /var/ order allow,deny
allow from all
directoryIndex index.html welcome.html
</directory>
and MANY MANY similar variations all fail to remove forbidden on these directories.
Possibly helpful:
after a restart, a test.cgi program works exactly once, then forbidden and after a wait often runs once again too.
works normally using the /* examples at the top
I can post my httpd.conf tomorrow but have looked for days at every forbidden problem and the three answers I keep finding don't work except for diasbling the default as above.
Is that the right answer, but if so why can't I control directories more specifically??
<Directory /> exactly which directory is this?
filesystem root right? (or serverroot or document root?)
<Directory />
order deny,allow
deny from all
</directory>
I can't get rid of the forbidden error without using
<Directory /*> (or /*/ etc)
order allow,deny
allow from all
</directory>
Trying to allow the directories that are the document root fails consistently with every combination. The directories have all the correct permisisons. DirectoryIndex directives don't work, giving a forbidden error for /index.html which exists
I am using chroot and suexec, both of which seem to be working correctly
I am using /var/ to avoid recompiling apache for suexec
<Directory /var/ order allow,deny
allow from all
directoryIndex index.html welcome.html
</directory>
<Directory /var/ order allow,deny
allow from all
directoryIndex index.html welcome.html
</directory>
and MANY MANY similar variations all fail to remove forbidden on these directories.
Possibly helpful:
after a restart, a test.cgi program works exactly once, then forbidden and after a wait often runs once again too.
works normally using the /* examples at the top
I can post my httpd.conf tomorrow but have looked for days at every forbidden problem and the three answers I keep finding don't work except for diasbling the default as above.
Is that the right answer, but if so why can't I control directories more specifically??
<Directory /> exactly which directory is this?
filesystem root right? (or serverroot or document root?)