Re: Problem with stale tomcat download pages

2021-06-17 Thread Jens Kallup

Hi,

each server can contain different content, depend on the
maintainer.
So, LoadBalancer server's can point to different Pools.

Jens



substitute not working

2019-01-25 Thread Jens Kallup

Hello,

I came not on done after much wasting time.
I would use SSI, but it did not work.
The directives in the config will not parsed.
Neither php, shtml, or else.

# here a snippet of my apache2.conf

User  www-data
Group www-data

LoadModule auth_basic_module   mod/mod_auth_basic.so
LoadModule authn_file_module   mod/mod_authn_file.so
LoadModule authz_core_module   mod/mod_authz_core.so
LoadModule authz_host_module   mod/mod_authz_host.so
LoadModule authz_user_module   mod/mod_authz_user.so
LoadModule authz_groupfile_module  mod/mod_authz_groupfile.so
LoadModule include_module  mod/mod_include.so
LoadModule alias_module    mod/mod_alias.so
LoadModule mime_module mod/mod_mime.so
LoadModule mime_magic_module   mod/mod_mime_magic.so
LoadModule negotiation_module  mod/mod_negotiation.so
LoadModule filter_module /usr/lib/apache2/modules/mod_filter.so
LoadModule dir_module  mod/mod_dir.so
LoadModule substitute_module   mod/mod_substitute.so
LoadModule env_module  mod/mod_env.so
LoadModule autoindex_module    mod/mod_autoindex.so
LoadModule cache_module    mod/mod_cache.so
LoadModule proxy_module    mod/mod_proxy.so
LoadModule proxy_http_module   mod/mod_proxy_http.so
LoadModule headers_module  mod/mod_headers.so
LoadModule deflate_module  mod/mod_deflate.so
LoadModule reqtimeout_module   mod/mod_reqtimeout.so
LoadModule rewrite_module  mod/mod_rewrite.so
LoadModule status_module   mod/mod_status.so
LoadModule ext_filter_module   mod/mod_ext_filter.so
LoadModule sed_module  mod/mod_sed.so
#
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
LoadModule mpm_prefork_module /usr/lib/apache2/modules/mod_mpm_prefork.so



# and here my default vhost:
#ExtFilterDefine c-to-html mode=output \
#    intype=text/c outtype=text/html \
#    cmd="/http/cmd/enscript.pl"


    ServerAdmin kallup.j...@web.de
    ServerName localhost
#    ServerAlias www.kallup.solutions

    DocumentRoot "/html/public/"

    AddLanguage de .de
    AddLanguage en .en

    LanguagePriority  de en
    AddDefaultCharset UTF-8

    FilterProvider SSI INCLUDES "%{HANDLER} = 'server-parsed'"
    FilterChain    SSI

    FilterDeclare  gzip CONTENT_SET
    FilterProvider gzip inflate "%{req:Accept-Encoding} !~ /gzip/"
    FilterChain    gzip

#    FilterDeclare  filter_kallup
#    FilterProvider filter_kallup SUBSTITUTE resp=Content-Type text/html
#    FilterProvider filter_kallup INCLUDES   resp=Content-Type text/html
#    FilterChain    filter_kallup SUBSTITUTE 's|||ni'


#    Alias /inc/footer.html /inc/footer.php

    AddType text/html      shtml
    AddHandler server-parsed .shtml
    AddOutputFilter INCLUDES .shtml

    AddOutputFilterByType SUBSTITUTE text/html
    Substitute "s||Eine 
Werbung|i"
    Substitute "s||$_SERVER['DOCUMENT_ROOT'].'/inc/footer.html') == FALSE) { echo 'ERROR, 
can't display page !!!'; die;} ?>|i"


# here, the line above (php) will not handled as php, response is 
raw/plain text

# the same for 

Re: minimal custom modul with no functionality

2018-01-31 Thread Jens Kallup

Hello Hajo,

Can you describe, how did you configure your config files?
The Link to the Apache Site was already applied from my side.

But the fact is (I don't know): how does a invoked script
read all the codes in the open-tag, and end-tag?

The other named question is: What is todo, to handle the code
that resides in:



Jens



Re: open tags - minimal example

2018-01-28 Thread Jens Kallup

Hi Eric,

Thank you for the Link.
I mean: "writing module to interpret codes like PHP."

See:
If the Developer of a Script (called e.g. "test.script"), and he/she
insert a open-tag (called e.g. )
the end-tag is then ?>.

How to handle 
It's not clear what you're asking.

Are you asking about writing an Apache module that interprets PHP the
same way mod_php does?

A basic introduction to writing modules is available here:
http://httpd.apache.org/docs/2.4/developer/modguide.html

-- Eric Covener




open tags - minimal example

2018-01-27 Thread Jens Kallup

Hello,

I research the web via google, but i can't get answer
to my indention;

I search for a little Introduction for making a toy
like Apache2.4 Example, that demonstrate the using of
open tags - like this one 

So the next question is: handle Apache or PhP it?
Would be nice to provide code in .c

A Bonus would be to show, how to config this toy with
Options in the apache.config.

Thank You
Jens