Tags:
create new tag
, view all tags

Question

I cannot get permission for twiki/bin/*. Whenever I try to access http://localhost/twiki/bin/testenv I get the following:

Forbidden You don't have permission to access /twiki/bin/testenv on this server.

Apache-AdvancedExtranetServer/1.3.23 Server at andrew.newman.net Port 80 . AND in my errorlog for apache 1.3.23 it says

[Sun Dec  1 18:08:33 2002] [error] [client 127.0.0.1] client denied by server configuration: /home/apache/twiki/bintestenv

I HAVE changed all the permissions with CHMOD 755 and CHOWN -R _______ but I still can't get it. This happens eveytime I try to access anything in localhost/twiki

Is it from my httpd.conf configuration?

Should I have the configuration in httpd.conf or commonhttpd.conf?

I have been trying different things, and still can't get it. Is there something wrong with this???????


ScriptAlias /twiki/bin/ "/home/apache/twiki/bin"
Alias /twiki/ "/home/apache/twiki/"
<Directory "/home/apache/twiki/bin">
   Options +ExecCGI
   SetHandler cgi-script
   AllowOverride none
   Allow from all
</Directory>
<Directory "/home/apache/twiki/pub">
   Options FollowSymLinks +Includes
   AllowOverride none
   Allow from all
</Directory>
<Directory "/home/apache/twiki/data>
   Deny from all
</Directory>
<Directory "/home/apache/twiki/templates">
   Deny from all
</Directory>

  • TWiki version: TWiki20011201
  • Web server: Apache 1.3.23
  • Server OS: Mandrake 8.2
  • Web browser: Konqueror 2.2.2
  • Client OS: Mandrake 8.2, Windowx XP, Win 98

-- AndrewNewman - 02 Dec 2002

Answer

This is an Apache setup problem - the key is this line in your error log (thanks for providing this):

[Sun Dec  1 18:08:33 2002] [error] [client 127.0.0.1] client denied by server configuration: 
                                                              /home/apache/twiki/bintestenv

Note the lack of a '/' after the 'bin'. The problem here is that you are missing a trailing '/' in your config for the bin script alias, should be:

ScriptAlias /twiki/bin/ "/home/apache/twiki/bin/"

ScriptAliases? and normal Aliases are like s/// commands in Perl and text editors - they substitute a match into exactly what is on the right hand side, thus removing the '/'. Hope this helps. Thanks -- that is a very helpful tidbit. -- RandyKramer - 02 Dec 2002

By the way, when you are creating questions, please go to WebHome first and create them from there so they are set to AskedQuestions, and always use a WikiWord so they are easy to reference.

-- RichardDonkin - 02 Dec 2002

Topic revision: r4 - 08 Feb 2003 - 08:47:52 - TWikiAdmin
Support.ApachePermissionsAndScriptAlias moved from Support.Permissions on 02 Dec 2002 - 09:03 by RichardDonkin - put it back
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback