You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Israel Brewster <is...@frontierflying.com> on 2009/10/15 21:35:27 UTC

[users@httpd] cgi as directory index?

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.
-----------------------------------------------
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------




Re: [users@httpd] cgi as directory index?

Posted by Israel Brewster <is...@frontierflying.com>.
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
> <is...@frontierflying.com> 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
>> <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.
>> -----------------------------------------------
>> 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 <URL:http://httpd.apache.org/userslist.html> 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
-----------------------------------------------


Re: [users@httpd] cgi as directory index?

Posted by Dick Davies <ra...@hellooperator.net>.
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
<is...@frontierflying.com> 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
> <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.
> -----------------------------------------------
> 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 <URL:http://httpd.apache.org/userslist.html> 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