[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: CGI
- From: "Anthony @ PencilFight Design" <anthony pencilfight com>
- To: Dave Lewis <dave dsl-co com>
- Cc: <redhat-install-list redhat com>
- Subject: Re: CGI
- Date: Thu, 02 Aug 2001 15:20:26 -0700
Thanks for all of your help,
I got it working.
I just had to put the following in the httpd.conf file.
ScriptAlias /cgi-bin/ /var/www/html/somesite.com/htdocs/cgi-bin
ScriptAlias / /var/www/html/somesite.com/htdocs/
and uncomment out
AddHandler cgi-script .cgi
Thanks again for all of your help!
:-----------------------:
Anthony Minero
Creative Director
PencilFight Design
PENCILFIGHT.COM
2518 Lincoln Blvd.
Los Angeles, CA. 90291
310.403.6599
:-----------------------:
> From: Dave Lewis <dave dsl-co com>
> Date: Wed, 1 Aug 2001 21:08:13 -0400 (EDT)
> To: "Anthony @ PencilFight Design" <anthony pencilfight com>
> Cc: redhat-install-list redhat com
> Subject: Re: CGI
>
>
> Hmm, umm.. you have existing cgi's working on this server ??? if not
> you'll have to go to the httpd.conf file and in there there will be a line
> that needs to be uncomented out to accept cgi's....
>
> AddHandler cgi-script .cgi
>
>
> and obviously the cgi's have to be excacutable..
>
> umm.. those should work...
>
> oh.. sec.. you want to have scripts runnable in other than the cgi-dir
> you want them to be able to run cgi's in their docs dir...
> (as per your example..) you'd have to do either of the following..
>
> if it is the default html dir for the server do this
> (where the default dir options are set...)
> (not the ExecCGI at the end, that allows you to run cgi's in this dir)
>
> <Directory "/home/HOME/public_html">
>
> Options Indexes FollowSymLinks MultiViews ExecCGI
>
> </Directory>
>
>
> IF It isn't the default dir you probably have to do the same
> but with the default dir settings for every other dir on the server
> (Again the ExecCGI)
>
> <Directory />
> Options FollowSymLinks ExecCGI Indexes
> </Directory>
>
>
>
>
> Lemme know how you make out....
>
> ttyl,
>
> Dave
>
>
>
>
> On Wed, 1 Aug 2001, Anthony @ PencilFight Design wrote:
>
>> Hey Dave,
>> I tried this
>>
>> <VirtualHost xxx.xxx.xxx.xxx>
>> DocumentRoot /var/www/html/somesite.com/htdocs
>> ServerName somesite.com
>> ServerAlias www.somesite.com
>> ErrorLog /var/www/html/somesite.com/logs/error_log
>> TransferLog /var/www/html/somesite.com/logs/access_log
>> ScriptAlias /cgi-bin/ /var/www/html/somesite.com/htdocs
>> </VirtualHost>
>>
>> So that any cgi script in htdocs would work but I still just get the script
>> written out.
>> :-----------------------:
>> Anthony Minero
>> Creative Director
>> PencilFight Design
>> PENCILFIGHT.COM
>> 2518 Lincoln Blvd.
>> Los Angeles, CA. 90291
>> 310.403.6599
>> :-----------------------:
>>
>>> From: Dave Lewis <dave dsl-co com>
>>> Reply-To: redhat-install-list redhat com
>>> Date: Wed, 1 Aug 2001 16:35:38 -0400 (EDT)
>>> To: redhat-install-list redhat com
>>> Subject: Re: CGI
>>>
>>> Easy..
>>>
>>> each virtual host has a <VirtualHost> section right.. in there you add
>>>
>>> ScriptAlias /cgi-bin/ /home/HOMEDIR/cgi-bin
>>>
>>> for each one... and that should do it...
>>>
>>>
>>>
>>> Dave
>>>
>>>
>>>
>>>
>>>
>>> On Wed, 1 Aug 2001, Anthony @ PencilFight Design wrote:
>>>
>>>> Okay.
>>>> I have a bunch of virtual sites set up and I would like to run cgi within
>>>> each one. Each site would have it's own cgi-bin where the cgi scripts would
>>>> run.
>>>>
>>>> Would I add this some where in the http.conf file for each virtual domain?
>>>>
>>>>
>>>> :-----------------------:
>>>> Anthony Minero
>>>> Creative Director
>>>> PencilFight Design
>>>> PENCILFIGHT.COM
>>>> 2518 Lincoln Blvd.
>>>> Los Angeles, CA. 90291
>>>> 310.403.6599
>>>> :-----------------------:
>>>>
>>>>> From: Chris Raper <chris raper hartslock org uk>
>>>>> Organization: http://hartslock.org.uk
>>>>> Date: Wed, 01 Aug 2001 21:09:21 +0100
>>>>> To: anthony pencilfight com
>>>>> Subject: Re: CGI
>>>>>
>>>>> On 1 Aug 2001 21:08:16 +0200, in linux.redhat.install you wrote:
>>>>>> I just moved to a new server running Red Hat 7.1 and I thought that CGI
>>>>>> was
>>>>>> automatically set up.
>>>>>
>>>>> Hi Anthony
>>>>>
>>>>> I had similar problems when I started a few weeks ago but I think I
>>>>> got around it by making sure the apache configuration file
>>>>> (httpd.conf) was pointing to where I had the perl scripts and made
>>>>> sure they were executable.
>>>>>
>>>>> The best test is to do a 'hello world' perl script and run it at a
>>>>> shell prompt - if it runs then there is no reason why you can't get
>>>>> apache to run it - other than apache has to know which folder the CGI
>>>>> scripts are in! :-)
>>>>>
>>>>> Best wishes,
>>>>> Chris R.
>>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Redhat-install-list mailing list
>>>> Redhat-install-list redhat com
>>>> https://listman.redhat.com/mailman/listinfo/redhat-install-list
>>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Redhat-install-list mailing list
>>> Redhat-install-list redhat com
>>> https://listman.redhat.com/mailman/listinfo/redhat-install-list
>>>
>>
>>
>>
>> _______________________________________________
>> Redhat-install-list mailing list
>> Redhat-install-list redhat com
>> https://listman.redhat.com/mailman/listinfo/redhat-install-list
>>
>
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]