[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: servidor apache con lisp: libapache-mod-lisp



mil gracias, parezco ir por el buen camino:

Esto esta copiado de la pagina de apache:
(http://httpd.apache.org/docs/mod/mod_actions.html)

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Action directive

Syntax: Action action-type cgi-script
Context: server config, virtual host, directory, .htaccess
Override: FileInfo
Status: Base
Module: mod_actions
Compatibility: Action is only available in Apache 1.1 and later

This directive adds an action, which will activate cgi-script when action-type is triggered by the request. The cgi-script is the URL-path to a resource that has been configured as a CGI script using ScriptAlias or AddHandler. The action-type can be either a handler or a MIME content type. It sends the URL and file path of the requested document using the standard CGI PATH_INFO and PATH_TRANSLATED environment variables.

Examples:

    # Requests for files of a particular type:
    Action image/gif /cgi-bin/images.cgi

    # Files of a particular file extension
    AddHandler my-file-type .xyz
    Action my-file-type /cgi-bin/program.cgi


In the first example, requests for files with a MIME content type of image/gif will instead be handled by the specified cgi script /cgi-bin/images.cgi.

In the second example, requests for files with a file extension of .xyz are handled instead by the specified cgi script /cgi-bin/program.cgi.

See also: AddHandler
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

pero al intentar usarlo:

Romeo:/etc/apache# head -908 /etc/apache/httpd.conf | tail -7
Action clisp-handler /usr/bin/clisp
AddHandler clisp-handler .cl

<Location /lisp>
 SetHandler clisp-handler
</Location>

sale esto:

Romeo:/etc/apache# /etc/init.d/apache restart
Configuration syntax error detected. Not reloading.

Syntax error on line 902 of /etc/apache/httpd.conf:
Invalid command 'Action', perhaps mis-spelled or defined by a module not included in the server configuration

así que segun la página de apache, me faltaría el módulo actions...

Romeo:/etc/apache# apt-cache search actions apache
libapache-mod-trigger - Creates hooks in Apache
libcommons-net-java - internet protocol suite Java library
php4-cgi - server-side, HTML-embedded scripting language (CGI binary)
snoopy - An execve() wrapper and logger
vqadmin - web based control panel for vpopmail

Romeo:/etc/apache# apt-get install libapache-mod-trigger
Reading Package Lists... Done
Building Dependency Tree... Done
libapache-mod-trigger is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Romeo:/etc/apache# apache-modconf apache

Romeo:/etc/apache# grep trigger modules.conf | wc -l
0

El modulo trigger no parece andar instalado aunque el paquete si lo este, y el modulo actions tampoco parece existir. Sigue dando el error de configuración en el comando Action, que sería el que crearia un manejador llamado clisp-handler para /usr/bin/clisp


¿Qué paquete o cambio en la configuración es necesario para hacer funcionar el comando 'Action'?

Iñigo escribió:
----- Original Message ----- From: "Rober Morales" <ultimozar@hotmail.com>
To: "Ricardo Frydman" <ricardo@sinectis.com.ar>
Cc: "Lista Debian" <debian-user-spanish@lists.debian.org>
Sent: Friday, July 01, 2005 11:59 PM
Subject: Re: servidor apache con lisp: libapache-mod-lisp



sigue sin funcionar. que pagina de man explicaría como rellenar el campo SetHandler??? en man apache no sale.


no es una "man" pero igual te sirve:
http://httpd.apache.org/docs-2.0/es/mod/core.html#sethandler



--


--
Rober Morales Chaparro
http://roberinworld.blogspot.com



Reply to: