Re: [users@httpd] 'require' directive result

2017-06-21 Thread Andrei Ivanov
On Wed, Jun 21, 2017 at 6:24 PM, Luca Toscano 
wrote:

> Hi Andrei,
>
> 2017-06-16 15:23 GMT+02:00 Andrei Ivanov :
>
>> Hi,
>> Now that I've managed to configure my 'require' directive, I have a
>> requirement to log some details to syslog in case the request is not
>> authorized.
>>
>> 
>>   Require expr ""
>>   // if expression is false, log details about the request and maybe
>> the SSL certificate to syslog
>> 
>>
>> I've searched around, but I can't find how I could do that.
>>
>
> sorry for what might be trivial, but have you tried  etc.. ?
>
> https://httpd.apache.org/docs/2.4/mod/core.html#if
>
> Luca
>

Aaah, you got me thinking...
I'll try Tomorrow with SetEnvIfExpr and CustomLog :)

Thank you


[users@httpd] reload specific vhost configuration

2017-06-21 Thread Benoit GEORGELIN - Association Web4all
Hi everyone, 

I was wondering, how hard would it be for apache to be able to reload one 
specific vhost configuration file ? 
I'm not a developer, but I would like to have your point of view about this 
subject. 

I know, it's possible to configure dynamic vhost , using specific pattern in 
the vhost configuration . 
But I would it be too difficult to have something like : 

- httpd start 
- all vhost are loaded into memory, let say with specific id to refer to (if 
that possible in memory?) 

Then, if i want to reload a specific vhost configuration file I will do : 

httpd reload /path/to/vhost 

And next incoming connexion will be handle buy this new configuration file. 

Running httpd and reloading is fine until there is a lot of vhost ( > 10k) 
Managing 10k vhost become a lot more complicated when 1 of the vhost have to 
change te configuration of the vhost. 
Reloading apache take some time, and I guess, checking if the docroot exist is 
part of the delay. Maybe I could just change this behavior ? I think it's 
possible on startup but not on reload. 

Having the possibility to reload the configuration , without killing the 
connexion or anything too demanding , would be nice so the next request will 
take the new values . 

Could it be done by an httpd module ? or should it be in the core ? 

I appreciate your input . 

Thanks 


Cordialement, 

BenoƮt G 


Re: [users@httpd] if directive not being respected in Apache 2.4.6

2017-06-21 Thread Jacob Champion

On 06/21/2017 08:45 AM, William A Rowe Jr wrote:

Frankly I'd think scope should be defined as Global only,
even though it won't error out in these other cases. For
trunk, it would be good to lock this down and eliminate
the legacy 'support' of Define in sections.


+1.

Very long-term, I think it would be good for all EXEC_ON_READ directives 
to be distinguished by the config syntax itself. Similar to #include and 
#define in C. I've been tinkering around with that a little in my spare 
cycles.


--Jacob

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



Re: [users@httpd] if directive not being respected in Apache 2.4.6

2017-06-21 Thread Eric Covener
On Wed, Jun 21, 2017 at 11:45 AM, William A Rowe Jr  wrote:
>> It is not currently documented or rejected, but "Define" can't be
>> wrapped in any of the normal configuration sections (only ifdefine,
>> ifmodule, etc. can wrap it)
>> It is processed at startup only, not during request procesing.
>
> Actually, it is documented, see last para;
>
> http://httpd.apache.org/docs/2.4/mod/core.html#define
>
> Frankly I'd think scope should be defined as Global only,
> even though it won't error out in these other cases. For
> trunk, it would be good to lock this down and eliminate
> the legacy 'support' of Define in sections.

You're right, I skimmed and missed it. Maybe it could use some kind of
note/warning box around it.

-- 
Eric Covener
cove...@gmail.com

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



Re: [users@httpd] if directive not being respected in Apache 2.4.6

2017-06-21 Thread William A Rowe Jr
On Wed, Jun 21, 2017 at 10:39 AM, Eric Covener  wrote:
> On Fri, Jun 9, 2017 at 12:36 PM, Day, Chuck  wrote:
>>Define locale1 fr-FR
>
> It is not currently documented or rejected, but "Define" can't be
> wrapped in any of the normal configuration sections (only ifdefine,
> ifmodule, etc. can wrap it)
> It is processed at startup only, not during request procesing.

Actually, it is documented, see last para;

http://httpd.apache.org/docs/2.4/mod/core.html#define

Frankly I'd think scope should be defined as Global only,
even though it won't error out in these other cases. For
trunk, it would be good to lock this down and eliminate
the legacy 'support' of Define in sections.

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



Re: [users@httpd] if directive not being respected in Apache 2.4.6

2017-06-21 Thread Eric Covener
On Fri, Jun 9, 2017 at 12:36 PM, Day, Chuck  wrote:
>Define locale1 fr-FR

It is not currently documented or rejected, but "Define" can't be
wrapped in any of the normal configuration sections (only ifdefine,
ifmodule, etc. can wrap it)
It is processed at startup only, not during request procesing.

-- 
Eric Covener
cove...@gmail.com

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



Re: [users@httpd] 'require' directive result

2017-06-21 Thread Luca Toscano
Hi Andrei,

2017-06-16 15:23 GMT+02:00 Andrei Ivanov :

> Hi,
> Now that I've managed to configure my 'require' directive, I have a
> requirement to log some details to syslog in case the request is not
> authorized.
>
> 
>   Require expr ""
>   // if expression is false, log details about the request and maybe
> the SSL certificate to syslog
> 
>
> I've searched around, but I can't find how I could do that.
>

sorry for what might be trivial, but have you tried  etc.. ?

https://httpd.apache.org/docs/2.4/mod/core.html#if

Luca


Re: [users@httpd] if directive not being respected in Apache 2.4.6

2017-06-21 Thread Luca Toscano
Hi Chuck,

2017-06-09 18:36 GMT+02:00 Day, Chuck :

> While trying to set a conditional parameter for the OpenIDC apache module,
> it seems the directive is not being respected at run-time. For example:
>
>
>
> 
>
>Define locale1 fr-FR
>
> 
>
> 
>
>Define locale1 en-UK
>
> 
>
> OIDCAuthRequestParams locale=${locale1}
>
>
>
>
>
> The value of locale is set to en-UK. Have tried string match(i.e.
> -strmatch) with same results.
>
>
>
> Anyone successfully using the if directive in Apache 2.4 for a similar
> use-case? Thank You.
>
>
>
not sure if you are still working on this issue but would it be possible
for you to turn logs to trace8 (
https://httpd.apache.org/docs/2.4/mod/core.html#loglevel) and verify what
gets written in the error log? Moreover it would be interesting if you
could check again with httpd 2.4.26.

Thanks!

Luca


[users@httpd] How mpm_workers work

2017-06-21 Thread Hemant Chaudhary
Hi all,

In my configuration for mpm_worker, I set following datas

Case 1)

StartServer 3
ThreadPerChild 25
MinSpareThreads 75

In this case, when I start apache I found 5 servers start.

Case 2)

StartServer 6
ThreadPerChild 25
MinSpareThreads 150

In this case, when I start apache I found 8 servers start.

Case 3)

StartServer 1
ThreadPerChild 25
MinSpareThreads 25

In this case, when I start apache I found 3 servers start.



My Query is why two extra server is starting.
Can I change serverlimit?

Thanks
Hemant


Re: [users@httpd] Mod_ Backtrace in apache-2.4.25

2017-06-21 Thread Rainer Canavan
On Wed, Jun 21, 2017 at 8:16 AM, Hemant Chaudhary
 wrote:
> Hi
>
> Can mod_backtrace is available to support apache-2.4.25. I want to support
> it on HPE Non-stop.
> If no then order module which can work as backtrace.

You can enable core dumps and use a cron job to automatically generate
backtraces and delete the core dump files in case there are too many.

rainer

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