"Script GET /cgi-bin/foo" doesn"t apply to all GET requests
am 31.12.2009 04:50:01 von Michael Stillwell
The documentation at
http://httpd.apache.org/docs/2.2/mod/mod_actions.html#script
says that "Script with a method of GET will only be called if there are =
query arguments present." Is there any way to work around this =
limitation? I would like a GET request for e.g.
http://example.com/user/foo
to be passed through to the specified CGI script irrespective of whether =
query arguments are present or not.
Michael=
------------------------------------------------------------ ---------
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: "Script GET /cgi-bin/foo" doesn"t apply to allGET requests
am 31.12.2009 15:31:15 von aw
Michael Stillwell wrote:
> The documentation at
>
> http://httpd.apache.org/docs/2.2/mod/mod_actions.html#script
>
> says that "Script with a method of GET will only be called if there are query arguments present." Is there any way to work around this limitation? I would like a GET request for e.g.
>
> http://example.com/user/foo
>
> to be passed through to the specified CGI script irrespective of whether query arguments are present or not.
>
Just don't use the Script directive then.
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
Options ExecCGI
will allow any file within that directory to be executed as a CGI
script, no matter the method or the arguments.
Just make sure that what you put there is safe.
------------------------------------------------------------ ---------
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: "Script GET /cgi-bin/foo" doesn"t apply to all GET
am 31.12.2009 18:19:09 von Michael Stillwell
On Thu, Dec 31, 2009 at 2:31 PM, Andr=E9 Warnier wrote:
> Michael Stillwell wrote:
>>
>> The documentation at
>>
>> http://httpd.apache.org/docs/2.2/mod/mod_actions.html#script
>>
>> says that "Script with a method of GET will only be called if there are
>> query arguments present." =A0Is there any way to work around this limita=
tion?
>> =A0I would like a GET request for e.g.
>>
>> http://example.com/user/foo
>>
>> to be passed through to the specified CGI script irrespective of whether
>> query arguments are present or not.
>>
> Just don't use the Script directive then.
>
> ScriptAlias /cgi-bin/ /var/www/cgi-bin/
>
>
> =A0Options ExecCGI
>
>
>
> will allow any file within that directory to be executed as a CGI script,=
no
> matter the method or the arguments.
> Just make sure that what you put there is safe.
I didn't mention this in my original email, but I would like to call
different scripts depending on the method. e.g. GET.php for GET,
PUT.php for PUT.
Michael
------------------------------------------------------------ ---------
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