Re: SSI Lost with Mod Perl?
On Tue, Jun 26, 2001 at 01:06:06AM -0400, Brooklyn Linux Solutions CEO wrote: > > I've given Filter and SSI a shot according to the perldocs. > > It didn't work. I stated to hhack on some of the problems, which first involved > in the make install depositing them in the wrong diretory, and then they SSI > needed use Apache::Filter statements added. have you tried HTML::Mason yet? it's got serious power, but you can have some quickie modular sites up in a jiffy. .../autohandler: <& SELF:title &> <& SELF:heading &> <& SELF:navbar &> <% $body %> <& SELF:footer &> <%method title>Welcome <%method heading>Welcome to our site <%method navbar><% &my_navbar() %> <%method footer>It is now <% scalar localtime %> at our offices <%once> sub my_navbar { ... } <%init> % my $body = $m->comp_next(); # set dependent variables first .../search.md: Search:<& searchform,query=>$query &> % if ($query) { Found:<% &list($query) %> % } <%method searchform> <%method title>Search <% $recs %> <%method heading><& SELF:title &> <%once> sub list { ... } <%shared> my $recs = ... ? 'Products' : 'Services'; <%args> $query => undef -- I figure: if a man's gonna gamble, may as well do it without plowing. -- Bama Dillert, "Some Came Running" [EMAIL PROTECTED] http://sourceforge.net/projects/newbiedoc -- we need your brain! http://www.dontUthink.com/ -- your brain needs us!
Re: SSI Lost with Mod Perl?
> I've given Filter and SSI a shot according to the perldocs. > > It didn't work. I stated to hhack on some of the problems, which first involved > in the make install depositing them in the wrong diretory, and then they SSI > needed use Apache::Filter statements added. > > Finally, Filter cam back with an error that something or other $r wasn't a > hash reference, which would not be a quick fix. > > So I've sort of hacked up my own little SSI for the time being and > deposited it in the modules. Sorry it didn't work for you. I've never used Filter, but I used Apache::SSI with great success. You weren't trying to use Filter with mod_include (i.e. not Apache::SSI) were you? Anyway, there's another CPAN module you can use called CGI::SSI_Parser which might fit your needs. > I'm definetely bathing in a Brooklyn Larger Bath when this is done. I prefer the IPA, taken orally. - Perrin
Re: SSI Lost with Mod Perl?
Hi Perrin I've given Filter and SSI a shot according to the perldocs. It didn't work. I stated to hhack on some of the problems, which first involved in the make install depositing them in the wrong diretory, and then they SSI needed use Apache::Filter statements added. Finally, Filter cam back with an error that something or other $r wasn't a hash reference, which would not be a quick fix. So I've sort of hacked up my own little SSI for the time being and deposited it in the modules. I'm missing something in my understanding at this pointbut this project has me climbing a wall, and I'm pushing a head for the time being. I had a similar problem at one time with embperl and we had to also hack that together. I'm definetely bathing in a Brooklyn Larger Bath when this is done. Ruben > > IS there a way of pre-processing and post processing a handler? > > Only by using something like Apache::Filter. Apache itself does not support > chaining handlers. > > - Perrin
Re: SSI Lost with Mod Perl?
> IS there a way of pre-processing and post processing a handler? Only by using something like Apache::Filter. Apache itself does not support chaining handlers. - Perrin
Re: SSI Lost with Mod Perl?
IS there a way of pre-processing and post processing a handler? Ruben > Brooklyn Linux Solutions CEO wrote: > > > > I have modules controlling all the files and their access and content in the > > directy. I have no idea > > really why SSI is shut down. I never used it before. > > It looks like you're trying to post-process the output of a PerlHandler > with SSI. The only way to do that is by using Apache::SSI and > Apache::Filter, as described here: > http://search.cpan.org/doc/KWILLIAMS/Apache-SSI-2.16/SSI.pm > > - Perrin >
Re: SSI Lost with Mod Perl?
Brooklyn Linux Solutions CEO wrote: > > I have modules controlling all the files and their access and content in the > directy. I have no idea > really why SSI is shut down. I never used it before. It looks like you're trying to post-process the output of a PerlHandler with SSI. The only way to do that is by using Apache::SSI and Apache::Filter, as described here: http://search.cpan.org/doc/KWILLIAMS/Apache-SSI-2.16/SSI.pm - Perrin
Re: SSI Lost with Mod Perl?
Will it work by default or do I need to chain it somehow? Ruben > > I've seemed to have lost my ability to use SSI whenI use the content > > handlers with Mod_perl. > > > > > > Is there anyway I can fix this? > > Can you be more specific about what you're trying to do? You can still use > mod_include with mod_perl installed, and you can use Apache::SSI either > alone or as a filter with Apache::Filter. Does that help? > > - Perrin > > (P.S. I'm in Brooklyn too!)
Re: SSI Lost with Mod Perl?
I have modules controlling all the files and their access and content in the directy. I have no idea really why SSI is shut down. I never used it before. I beleive it worked when the modules are commented out. Could I do something to prevent the SSI from being luanched after the return OK from the modules? the conf file looks like this: erverRoot "/usr/local/apache-merck" #LockFile /usr/local/apache-merck/logs/httpd.lock PidFile /usr/local/apache-merck/logs/httpd.pid ScoreBoardFile /usr/local/apache-merck/logs/httpd.scoreboard Timeout 300 KeepAlive On MaxKeepAliveRequests 1000 KeepAliveTimeout 15 MinSpareServers 5 MaxSpareServers 10 StartServers 10 MaxClients 150 MaxRequestsPerChild 0 Port 8080 User nobody Group nobody ServerAdmin roliver@devel-lls ServerName 192.168.1.240 DocumentRoot "/usr/local/apache-merck/htdocs" Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks MultiViews Includes AllowOverride None Order allow,deny Allow from all ###Ruben's Additional## #We need to check everyone for a cookie and redirect if need be SetHandler perl-script PerlHandler Apache::CHOOSE SetHandler perl-script PerlHandler Apache::LOGIN SetHandler perl-script PerlHandler Apache::LOGIN SetHandler perl-script #PerlAccessHandler Apache::GATEKEEPER #PerlSetVar Gate open PerlHandler Apache::CHOOSE2 Options Indexes FollowSymLinks MultiViews Includes AllowOverride All #Order deny,allow Allow from all #PerlAccessHandler Apache::GATEKEEPER SetHandler perl-script PerlHandler Apache::CHOOSE2 Options Indexes FollowSymLinks MultiViews Includes AllowOverride All #Order deny,allow Allow from all ## Order allow,deny Deny from all UseCanonicalName On TypesConfig /usr/local/apache-merck/conf/mime.types DefaultType text/plain MIMEMagicFile /usr/local/apache-merck/conf/magic HostnameLookups Off ErrorLog /usr/local/apache-merck/logs/error_log LogLevel warn LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combine d LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent CustomLog /usr/local/apache-merck/logs/access_log common ServerSignature On Alias /icons/ "/usr/local/apache-merck/icons/" Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all AllowOverride None Options None Order allow,deny Allow from all IndexOptions FancyIndexing AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip AddIconByType (TXT,/icons/text.gif) text/* AddIconByType (IMG,/icons/image2.gif) image/* AddIconByType (SND,/icons/sound2.gif) audio/* AddIconByType (VID,/icons/movie.gif) video/* AddIcon /icons/binary.gif .bin .exe AddIcon /icons/binhex.gif .hqx AddIcon /icons/tar.gif .tar AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip AddIcon /icons/a.gif .ps .ai .eps AddIcon /icons/layout.gif .html .shtml .htm .pdf AddIcon /icons/text.gif .txt AddIcon /icons/c.gif .c AddIcon /icons/p.gif .pl .py AddIcon /icons/f.gif .for AddIcon /icons/dvi.gif .dvi AddIcon /icons/uuencoded.gif .uu AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl AddIcon /icons/tex.gif .tex AddIcon /icons/bomb.gif core AddIcon /icons/back.gif .. AddIcon /icons/hand.right.gif README AddIcon /icons/folder.gif ^^DIRECTORY^^ AddIcon /icons/blank.gif ^^BLANKICON^^ DefaultIcon /icons/unknown.gif AddDescription "GZIP compressed document" .gz AddDescription "tar archive" .tar AddDescription "GZIP compressed tar archive" .tgz ReadmeName README HeaderName HEADER IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t AddEncoding x-compress Z AddEncoding x-gzip gz tgz AddLanguage da .dk AddLanguage nl .nl AddLanguage en .en AddLanguage et .ee AddLanguage fr .fr AddLanguage de .de AddLanguage el .el AddLanguage it .it AddLanguage ja .ja AddCharset ISO-2022-JP .jis AddLanguage pl .po AddCharset ISO-8859-2 .iso-pl AddLanguage pt .pt AddLanguage pt-br .pt-br AddLanguage ltz .lu AddLanguage ca .ca AddLanguage es .es AddLanguage sv .se AddLanguage cz .cz LanguagePriority en da nl et fr de el it ja pl pt pt-br ltz ca es sv AddType application/x-tar .tgz AddType text/html .html AddHandler server-parsed .html XBitHack On BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" fo
Re: SSI Lost with Mod Perl?
> I've seemed to have lost my ability to use SSI whenI use the content > handlers with Mod_perl. > > > Is there anyway I can fix this? Can you be more specific about what you're trying to do? You can still use mod_include with mod_perl installed, and you can use Apache::SSI either alone or as a filter with Apache::Filter. Does that help? - Perrin (P.S. I'm in Brooklyn too!)
SSI Lost with Mod Perl?
I've seemed to have lost my ability to use SSI whenI use the content handlers with Mod_perl. Is there anyway I can fix this? Ruben