From users-return-118182-archive-asf-public=cust-asf.ponee.io@httpd.apache.org Mon Nov 5 15:07:39 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0FC90180670 for ; Mon, 5 Nov 2018 15:07:38 +0100 (CET) Received: (qmail 9384 invoked by uid 500); 5 Nov 2018 14:07:37 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 9373 invoked by uid 99); 5 Nov 2018 14:07:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2018 14:07:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2BA441A0587 for ; Mon, 5 Nov 2018 14:07:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.299 X-Spam-Level: * X-Spam-Status: No, score=1.299 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id lDDQRTOMizoH for ; Mon, 5 Nov 2018 14:07:35 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id C3A025F18F for ; Mon, 5 Nov 2018 14:07:34 +0000 (UTC) Received: from [192.168.6.96] ([85.13.159.249]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M7TQZ-1fZHFq1unX-00xHo6 for ; Mon, 05 Nov 2018 15:07:33 +0100 Received: from [192.168.6.96] ([85.13.159.249]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M7TQZ-1fZHFq1unX-00xHo6 for ; Mon, 05 Nov 2018 15:07:33 +0100 To: users@httpd.apache.org References: <224c1498-9203-fcaf-e7d2-b7336fe22b12@gmx.de> From: Hajo Locke Message-ID: <68653bab-c98d-f114-a985-203dcfc4f548@gmx.de> Date: Mon, 5 Nov 2018 15:07:33 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------210245EF3A68F7053218BF04" Content-Language: de-DE X-Provags-ID: V03:K1:R/tJyFYxpttVd7H2ppXiVTh3TPe5uCM5kyUs0XSS4UlHEH1Qc06 GWMcjydhGnDCWwDIqR2r6xzRZdHfpEJzz0+QcrTp9JSb0wyOMfJlYLj/lGfdvYUs9XF+A9Z SUuYVigAbOsbKsQ2XpWxa9xF9OfLHJKvP89OZwPUc89vm8Q844uz5NOD2Ehg3h2OJzFApOW LXF72yz2RFLLM3ezTa8Rw== X-UI-Out-Filterresults: notjunk:1;V01:K0:CzuYXajPSXw=:V60n+wQdI3/m8/vRIKeg0x o7UTl4bBlQOXXtnmAN0ccqZSxX8Dt5vKUZYMLt55hz2DdzRPm7hMZycfI7LCOGAOpSknB2DID Odnd2IaUuHzzyaTZEbCTGsMgbjeOusZHVZqBbmPwWAi1lnHPF+lgTa8kCoYWgU77pPg+lixVU /1+NITGl3C6Z0gr2cW4sIQKXP0v7xuPBpzhAF1eTVRy5dwyktoZRlZk1a2bDWIglpf+rK1i2F T1QlnmlgFFIzTRPrWrMYQ3NSk11aQvu7H8ZprakyfwQ5FNqKoaNyyJxYB5s0U1X9M8825EaVO aP0SJqS/FniPZXfJZrbI6dJiZjGUuFvhJWdsZ2VCrFEzfHN+lDiDyyOtDxmHerIQuFg9rR1fO XH5XI2o4hlTHSc45flaojhlvhpHFhIxPj/9icp/6G1WSC3OS2UKso/aE/XCPOfns60D2M6S5m hluW9MdOfGr/z88KMVBiGGHRM6xdxX82UF/ekgFIExv9opU/AHv6ZXu2xYmxVHZ8XMuhuM6n5 fJhG6VYEVG3WvZclE30JJ8bcx+BO2xgFXtwubkerHH2xpdw13kwBE60bWZ6a5AKabsxresyNN pjjO1Rb2XTBHl9QOfa3bt1FLLwlKHuuhdpPGGo/EnANaZ2AUHIs3iiW82eaMY5lHy4GHrZ65Y 4/tU3pJeAql2GX6hbcGQ5+yhEWne1dH882Hs8raZSCzdOe8qI3A0mT0eDyT73Aqm1qB2WyUYr fR8Yn3vJb1i+mgLFySJMmEVK9CAo7YDdCJrKNgDTteuXmJ2NucOhltjH02UcY9bYsEuERNroz x178s6e5VVm2274kcXHOZSK3V1syMIIk1HDrZNZpzFupzcZcLM= Subject: Re: [users@httpd] define variables by vhost only --------------210245EF3A68F7053218BF04 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello, thanks for your answer. Am 05.11.2018 um 14:00 schrieb Gillis J. de Nijs: > Alternatlvely, you can just put the AddHandler in the VirtualHost > directly, and not bother with the .htaccess files. yes, i have in Vhost a preconfigured addhandler which fits for most needs. These parts of VHost-Configurations are created automatically by our own customer-menu. The addhandler in .htaccess file should help people with some special requirements. We moved from classic fastcgi to mod_proxy_fcgid, and we try to keep userspaceconfiguration unchanged, but seems to be impossible. May be we should say good buy to our former use of addhandler to choose php-versions and only use the modern way. But its not easy for support-people. Its harder to support uneven machines with mixed setups. The use of "define" was our closest attempt, but also seems to be off the track. > > On Mon, Nov 5, 2018 at 9:43 AM Hajo Locke > wrote: > > Hello List, > > iam looking for a way to use define to create variables limited to > vhosts (apache 2.4). > Currently i have some vhosts and use this syntax: > > define myvar mycontent. > > Name of variables is in all vhosts the same, "mycontent" is different > and vhost related. Later i use this variable in .htaccess files > for users: > > Addhandler ${myvar} .php > > Unfortunately define-directive defines the variable for complete > server > and not to vhost only. so content of "myvar" gets overwritten with > every > following vhost-config. > So if user A uses this variable, he sees content of variable > created in > vhost for user z. > > Is there a possibility to use variables limited to vhost but can > be used > the same way in .htaccess files? I think setenv seems not suitable > for this. > > Thanks, > Hajo > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > > For additional commands, e-mail: users-help@httpd.apache.org > > Thanks, Hajo --------------210245EF3A68F7053218BF04 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hello,

thanks for your answer.

Am 05.11.2018 um 14:00 schrieb Gillis J. de Nijs:
Alternatlvely, you can just put the AddHandler in the VirtualHost directly, and not bother with the .htaccess files.
yes, i have in Vhost a preconfigured addhandler which fits for most needs. These parts of VHost-Configurations are created automatically by our own customer-menu. The addhandler in .htaccess file should help people with some special requirements.
We moved from classic fastcgi to mod_proxy_fcgid, and we try to keep userspaceconfiguration unchanged, but seems to be impossible.
May be we should say good buy to our former use of addhandler to choose php-versions and only use the modern way. But its not easy for support-people. Its harder to support uneven machines with mixed setups.
The use of "define" was our closest attempt, but also seems to be off the track.

On Mon, Nov 5, 2018 at 9:43 AM Hajo Locke <Hajo.Locke@gmx.de> wrote:
Hello List,

iam looking for a way to use define to create variables limited to
vhosts (apache 2.4).
Currently i have some vhosts and use this syntax:

define myvar mycontent.

Name of variables is in all vhosts the same, "mycontent" is different
and vhost related. Later i use this variable in .htaccess files for users:

Addhandler ${myvar} .php

Unfortunately define-directive defines the variable for complete server
and not to vhost only. so content of "myvar" gets overwritten with every
following vhost-config.
So if user A uses this variable, he sees content of variable created in
vhost for user z.

Is there a possibility to use variables limited to vhost but can be used
the same way in .htaccess files? I think setenv seems not suitable for this.

Thanks,
Hajo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Thanks,
Hajo
--------------210245EF3A68F7053218BF04--