cgi as directory index?
am 15.10.2009 21:35:27 von Israel Brewster
--Apple-Mail-37-302737015
Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit
I'm sure this one is really simple, but I don't know what I am doing
wrong. I have the following config block in my httpd.conf file:
ScriptAlias /abc /var/www/abc/cgi-bin
Options +ExecCGI
allow from all
directoryindex abc.cgi
if I go to http:///abc/abc.cgi, it works fine. However, if I
just go to http:///abc, I get a "Forbidden" message. The
error log shows "attempt to invoke directory as script: /var/www/abc/
cgi-bin". I want to be able to just type http:///abc to get
to the script. What am I missing here? Thanks.
-----------------------------------------------
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
--Apple-Mail-37-302737015
Content-Type: multipart/mixed;
boundary=Apple-Mail-38-302737015
--Apple-Mail-38-302737015
Content-Type: text/html;
charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
-webkit-line-break: after-white-space; ">I'm sure this one is really =
simple, but I don't know what I am doing wrong. I have the following =
config block in my httpd.conf file:
ScriptAlias =
/abc /var/www/abc/cgi-bin
<Directory =
/var/www/abc/cgi-bin>
=
Options +ExecCGI
allow =
from all
directoryindex =
abc.cgi
</Directory>
if I go to =
http://<myserver>/abc/abc.cgi, it works fine. However, if I just =
go to http://<myserver>/abc, I get a "Forbidden" message. The =
error log shows "attempt to invoke directory as script: =
/var/www/abc/cgi-bin". I want to be able to just =
type http://<myserver>/abc to get to the script. What am I =
missing here? Thanks.
class=3D"Apple-style-span" style=3D"font-family: 'Times New Roman', =
fantasy; font-size: 16px; ">
style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: medium; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; =
widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; =
-webkit-border-vertical-spacing: 0px; =
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0px; ">
style=3D"font-family: Helvetica, sans-serif; font-size: 12px; =
">
margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: =
'Times New Roman', serif; ">
Helvetica, sans-serif; color: black; =
">-----------------------------------------------
<=
/div>
margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: =
'Times New Roman', serif; ">
Helvetica, sans-serif; color: black; ">Israel =
Brewster
0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; =
font-size: 12pt; font-family: 'Times New Roman', serif; ">
style=3D"font-size: 9pt; font-family: Helvetica, sans-serif; color: =
black; ">Computer Support Technician =
II
margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: =
12pt; font-family: 'Times New Roman', serif; ">
9pt; font-family: Helvetica, sans-serif; color: black; ">Frontier Flying =
Service Inc.
0in; margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; =
font-size: 12pt; font-family: 'Times New Roman', serif; ">
style=3D"font-size: 9pt; font-family: Helvetica, sans-serif; color: =
black; ">5245 Airport Industrial =
Rd
margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: =
12pt; font-family: 'Times New Roman', serif; ">
9pt; font-family: Helvetica, sans-serif; color: black; ">Fairbanks, AK =
99709
margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: =
12pt; font-family: 'Times New Roman', serif; ">
9pt; font-family: Helvetica, sans-serif; color: black; ">(907) 450-7250 =
x293
margin-right: 0in; margin-bottom: 0.0001pt; margin-left: 0in; font-size: =
12pt; font-family: 'Times New Roman', serif; ">
9pt; font-family: Helvetica, sans-serif; color: black; =
">-----------------------------------------------
style=3D"margin-top: 0in; margin-right: 0in; margin-bottom: 0.0001pt; =
margin-left: 0in; font-size: 12pt; font-family: 'Times New Roman', =
serif; ">
sans-serif; color: black; ">
style=3D"font-family: Helvetica; font-size: medium; =
">
class=3D"Apple-interchange-newline">=
=
--Apple-Mail-38-302737015
Content-Disposition: attachment;
filename="Israel Brewster.vcf"
Content-Type: text/directory;
x-mac-hide-extension=yes;
x-unix-mode=0644;
name="Israel Brewster.vcf"
Content-Transfer-Encoding: quoted-printable
BEGIN:VCARD
VERSION:3.0
N:Brewster;Israel;;;
FN:Israel=20=
Brewster
ORG:Frontier=20Flying=20Service;MIS
TITLE :PC=20=
Support=20Tech=20II
=
EMAIL;type=3DINTERNET;type=3DWORK;type=3Dpref:israel@frontie rflying.com=0D=
=0ATEL;type=3DWORK;type=3Dpref:907-450-7293
=
item1.ADR;type=3DWORK;type=3Dpref:;;5245=20Airport=20Industr ial=20=
Wy;Fairbanks;AK;99701;
item1.X-ABADR:us
CATEGORIES :General
=
X-ABUID:36305438-95EA-4410-91AB-45D16CABCDDC\:ABPerson
END:VCARD
=
--Apple-Mail-38-302737015
Content-Type: text/html;
charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
-webkit-line-break: after-white-space; ">
apple-content-edited=3D"true">
style=3D"font-family: 'Times New Roman', fantasy; font-size: 16px; =
">
color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; =
font-style: normal; font-variant: normal; font-weight: normal; =
letter-spacing: normal; line-height: normal; orphans: 2; text-indent: =
0px; text-transform: none; white-space: normal; widows: 2; word-spacing: =
0px; -webkit-border-horizontal-spacing: 0px; =
-webkit-border-vertical-spacing: 0px; =
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0px; ">
style=3D"font-family: Helvetica, sans-serif; font-size: 12px; =
">
margin-bottom: 0.0001pt; margin-left: 0in; font-size: 12pt; font-family: =
'Times New Roman', serif; ">
=
=
--Apple-Mail-38-302737015--
--Apple-Mail-37-302737015--
Re: cgi as directory index?
am 15.10.2009 22:38:41 von Dick Davies
Why don't you do
ScriptAlias /abc /var/www/abc/cgi-bin/abc.cgi
?
On Thu, Oct 15, 2009 at 8:35 PM, Israel Brewster
wrote:
> I'm sure this one is really simple, but I don't know what I am doing wron=
g.
> I have the following config block in my httpd.conf file:
> ScriptAlias /abc /var/www/abc/cgi-bin
>
> =A0 =A0 =A0Options +ExecCGI
> =A0 =A0 =A0allow from all
> =A0 =A0 =A0directoryindex abc.cgi
>
> if I go to http:///abc/abc.cgi, it works fine. However, if I ju=
st
> go to http:///abc, I get a "Forbidden" message. The error log
> shows "attempt to invoke directory as script: /var/www/abc/cgi-bin". I wa=
nt
> to be able to just type=A0http:///abc to get to the script. Wha=
t am
> I missing here? Thanks.
> -----------------------------------------------
> Israel Brewster
> Computer Support=A0Technician II
> Frontier Flying Service Inc.
> 5245 Airport Industrial Rd
> Fairbanks, AK 99709
> (907) 450-7250 x293
> -----------------------------------------------
>
>
>
>
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: cgi as directory index?
am 15.10.2009 23:48:42 von Israel Brewster
--Apple-Mail-40-310732357
Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit
On Oct 15, 2009, at 12:38 PM, Dick Davies wrote:
> Why don't you do
>
> ScriptAlias /abc /var/www/abc/cgi-bin/abc.cgi
>
> ?
Because I didn't know you could do that. I thought aliases had to
point to directories :) Knew it would be something simple :-P
>
> On Thu, Oct 15, 2009 at 8:35 PM, Israel Brewster
> wrote:
>> I'm sure this one is really simple, but I don't know what I am
>> doing wrong.
>> I have the following config block in my httpd.conf file:
>> ScriptAlias /abc /var/www/abc/cgi-bin
>>
>> Options +ExecCGI
>> allow from all
>> directoryindex abc.cgi
>>
>> if I go to http:///abc/abc.cgi, it works fine. However,
>> if I just
>> go to http:///abc, I get a "Forbidden" message. The error
>> log
>> shows "attempt to invoke directory as script: /var/www/abc/cgi-
>> bin". I want
>> to be able to just type http:///abc to get to the script.
>> What am
>> I missing here? Thanks.
>> -----------------------------------------------
>> Israel Brewster
>> Computer Support Technician II
>> Frontier Flying Service Inc.
>> 5245 Airport Industrial Rd
>> Fairbanks, AK 99709
>> (907) 450-7250 x293
>> -----------------------------------------------
>>
>>
>>
>>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
-----------------------------------------------
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
--Apple-Mail-40-310732357
Content-Disposition: attachment;
filename="Israel Brewster.vcf"
Content-Type: text/directory;
x-mac-hide-extension=yes;
x-unix-mode=0644;
name="Israel Brewster.vcf"
Content-Transfer-Encoding: quoted-printable
BEGIN:VCARD
VERSION:3.0
N:Brewster;Israel;;;
FN:Israel=20=
Brewster
ORG:Frontier=20Flying=20Service;MIS
TITLE :PC=20=
Support=20Tech=20II
=
EMAIL;type=3DINTERNET;type=3DWORK;type=3Dpref:israel@frontie rflying.com=0D=
=0ATEL;type=3DWORK;type=3Dpref:907-450-7293
=
item1.ADR;type=3DWORK;type=3Dpref:;;5245=20Airport=20Industr ial=20=
Wy;Fairbanks;AK;99701;
item1.X-ABADR:us
CATEGORIES :General
=
X-ABUID:36305438-95EA-4410-91AB-45D16CABCDDC\:ABPerson
END:VCARD
=
--Apple-Mail-40-310732357
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
Content-Transfer-Encoding: 7bit
--Apple-Mail-40-310732357
Content-Type: text/plain; charset=us-ascii
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
--Apple-Mail-40-310732357--