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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.