You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by gerard uolaquetalestem <vi...@mixmail.com> on 2004/01/19 19:34:38 UTC
Re (3): perl sections howto?
Hello again, these are my results about the discussion:
------------------------------------------------------------------------
- First, the obvious, the last problem about
$Directory{'f:/projectes/sites/blogum.org'} = {
PerlHeaderParserHandler => "module",
Options => {
All => "-Indexes",
},
AllowOverride => "All",
Order => "allow,deny",
Allow => "from all",
DirectoryIndex => "main.bhtml",
AddOutputFilter => "INCLUDES .bhtml",
AddOutputFilter => "INCLUDES .html",
Files => {
"*.bhtml" => {
PerlOutputFilterHandler => "Blogum::BlogumFilter",
},
},
};
there were a problem with AddOutputFilter, but really the problem was with this
Options => {
All => "-Indexes",
},
This is a mistake, writting this
Options => "All -Indexes",
problem is solved and AddOutputFilterworks fine
------------------------------------------------------------------------
------------------------------------------------------------------------
Now, the not so obvious (for me) apache httpd.conf configuration.
Ok, i was an "ingenous" to believe that if i call a perl module from httpd.conf this would
be magically different and the world will be beautiful.
Then i have to provide a right namespace, but you're right (Stas) that there is not a lot
of docs there (i haven't found), so i decided for
use Apache::ServerUtil ();
And i've begun to look for info in perl.apache.org.
Then, this is what i have found:
(http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache_E_gt_httpd_conf_)
Apache->httpd_conf is now $s->add_config or $r->add_config. e.g.:
require Apache::ServerUtil;
Apache->server->add_config(['require valid-user']);
See the Apache::ServerUtil manpage.
But ...
(http://perl.apache.org/docs/2.0/api/Apache/ServerUtil.html)
Apache::ServerUtil
Table of Contents
* Synopsis
* Description
* Constants
o Apache::server_root
* Functions API
o add_version_component
o exists_config_define
o get_server_built
o get_server_version
* Methods API
o server_root_relative()
o error_log2stderr
o psignature
o dir_config
o is_perl_option_enabled
o get_handlers
o push_handlers
o set_handlers
o server
* See Also
* Copyright
* Authors
Where is the "add_config" method??
Maybe i have to find Apache->server
(http://perl.apache.org/docs/2.0/api/Apache/Server.html)
Apache->server
Table of Contents
* Synopsis
* Description
* API
o process
o next
o server_admin
o server_hostname
o port
o error_fname
o loglevel
o is_virtual
o module_config
o lookup_defaults
o addrs
o timeout
o keep_alive_timeout
o keep_alive_max
o keep_alive
o path
o names
o wild_names
o limit_req_line
o limit_req_fieldsize
o limit_req_fields
* See Also
* Copyright
* Authors
Neither, let's look for add_config in search label ... i find!
(http://perl.apache.org/docs/2.0/api/Apache/RequestUtil.html#C_add_config_)
Apache::RequestUtil
Table of Contents
* Synopsis
* Description
* Functions API
o Apache->request()
* Methods API
o default_type
o document_root
o get_limit_req_body
o get_server_name
o get_server_port
o get_status_line
o is_initial_req
o method_register
o add_config
o location
o location_merge
o pnotes
o no_cache
o as_string
o get_handlers
o push_handlers
o set_handlers
o set_basic_credentials
o slurp_filename
o is_perl_option_enabled
o dir_config
* See Also
* Copyright
* Authors
Then, what object have i to use?? RequestUtil or ServerUtil?
At the time i write this i haven't tested any of both (i'm gonna do it now), thanks for
all!!!!!!!!!!!!!!!!!!!!!
-----
Ya.com ADSL:�PROMOCI�N! Router 3Com Wireless 11g + 1 Mes + Alta �Gratis! http://acceso.ya.com/adsl/256router/
Ven, vota a l@s m�s guap@s y... �atr�vete a ser uno de ellos! En http://guapos.yatv.com
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
Re: Re (3): perl sections howto?
Posted by Stas Bekman <st...@stason.org>.
gerard uolaquetalestem wrote:
[...]
> Neither, let's look for add_config in search label ... i find!
> (http://perl.apache.org/docs/2.0/api/Apache/RequestUtil.html#C_add_config_)
[...]
> Then, what object have i to use?? RequestUtil or ServerUtil?
Apache->server->add_config() as I've suggested in the other reply.
we are working on the docs, most of them were autogenerated a few days ago and
need some reshuffling/fixes.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html