This is cut directly from a working Redhat 7.3 box's old Apache 1.23 httpd.conf file (dir locations modified but otherwise stock):
# # ScriptAlias: This controls which directories contain server scri +pts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications +and # run by the server when requested rather than as documents sent t +o the client. # The same rules about trailing "/" apply to ScriptAlias directive +s as to # Alias. # # ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" ScriptAlias /cgi-bin/ "/home/www/cgi-bin/" # # "/var/www/cgi-bin" should be changed to whatever your ScriptAlia +sed # CGI directory exists, if you have that configured. # <Directory "/var/www/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory>
Exactly the same stuff is in my current 1.27 conf file (apache built from source). It is also in the 1.27 httpd.conf.default file although it points to the default location (/usr/lib/apache/cgi-bin/)
The location of httpd.conf in /etc/httpd/conf/httpd.conf is correct for a Redhat 7.2 box. Line number is of course ballpark. In 1.23 it is actually at 750 in my file but I have a couple of hundred module lines....
With this config I can run cgi's in subdirs of CGI bin proviced that the dir is 755 and script 755 of course. The reason that our respondent has issues will actually probably relate to other directives in the conf file (perhaps CGI is set up via Alias) preventing execution in subdirs but the quickest way to fix the issue should be to specifically allow it in the desired subdir....
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: Re: Re: permissions...
by tachyon
in thread permissions...
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |