[users@httpd] Compiling 2.4.34 on linux against a non system openssl version

2018-09-17 Thread Matthew Goebel
Hello, With gcc 4.3.x and apache 2.2.x I could compile apache against a non system version of openssl. If the extra openssl is in /usr/local/ssl/lib and added to /etc/ld.so.conf I could do the following export LDFLAGS="-L/usr/local/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib" export

Re: [users@httpd] Want to Deploy Web App Behind a Reverse Proxy

2018-09-17 Thread Osman Zakir
I already figured I'd have to keep Apache running at all times. I'd like it if you guys were to read my httpd.conf and the virtual host configuration file to see if I did it correctly. I did read the documentation for it, but I'm not sure if I did correctly and the virtual host also doesn't

Re: [users@httpd] Re: Non Blocking write in apache

2018-09-17 Thread Hemant Chaudhary
If it will flush data then at what condition it will go to apr_poll function ?? What I understand is that if buffer is filled with 52KB data and writev is not ready then it should go into apr_poll(). Now the problem may exist with 42KB also. I hope I am explained my issue. Thanks Hemant On

[users@httpd] mod_macro, unix domain sockets, php-fpm pool config files

2018-09-17 Thread Rose, John B
mod_macro and unix domain socket functionality in Apache are nice features, thanks to whomever put in the time and effort developing/maintaining. We have looked for an equivalent of Apache mod_macro for php-fpm in order avoid having to create a php-fpm pool conf for each Apache virtual host

Re: [users@httpd] Re: Non Blocking write in apache

2018-09-17 Thread Yann Ylavic
On Mon, Sep 17, 2018 at 3:27 PM Yann Ylavic wrote: > > Otherwise, you need a patch like the one attached (untested)... Sorry, it did not compile, so here is v2. With this patch, you could compile httpd with "-D MAX_BYTES_TO_WRITEV=52000" for instance. Index: server/core_filters.c

Re: [users@httpd] Re: Non Blocking write in apache

2018-09-17 Thread Yann Ylavic
Hi, On Mon, Sep 17, 2018 at 1:51 PM Hemant Chaudhary wrote: > > in the apache error_log with trace6, it is trying to flush because it reached > thresold_max_buffer. But at the same time, it is adding data in buffer which > increases it size to to more than 52KB and fails on NonStop. Yes,

Re: [users@httpd] Re: Non Blocking write in apache

2018-09-17 Thread Hemant Chaudhary
Hi, in the apache error_log with trace6, it is trying to flush because it reached thresold_max_buffer. But at the same time, it is adding data in buffer which increases it size to to more than 52KB and fails on NonStop. How should I stop apache so that it should go to select function till 52KB

Re: [users@httpd] Re: Non Blocking write in apache

2018-09-17 Thread Hemant Chaudhary
Hi Yann, Thanks for your explanation. I got the issue. Actually NonStop has maximum limit of 52KB only for writev. Therefore I was getting 4022 after 49KB. Because after 49KB, apache is adding 8K more bytes which leads to 56KB. Therefore, writev was failing. To solve this, I have changed

Re: [users@httpd] mod_substitute not firing with HTTP Status Code 201?

2018-09-17 Thread Nick Kew
> On 17 Sep 2018, at 10:09, Maarten Boekhold wrote: > > Hi, > > Careful reading of the mod_filter documentation pointed me to the issue: > mod_filter by default only filters documents with Status Code 200. You need > to "SetEnv filter-errordocs" to make it work with other status codes...

Re: [users@httpd] mod_substitute not firing with HTTP Status Code 201?

2018-09-17 Thread Maarten Boekhold
Hi, Careful reading of the mod_filter documentation pointed me to the issue: mod_filter by default only filters documents with Status Code 200. You need to "SetEnv filter-errordocs" to make it work with other status codes... Maarten On 09/17/2018 12:14 PM, Maarten Boekhold wrote: Hi, I

[users@httpd] mod_substitute not firing with HTTP Status Code 201?

2018-09-17 Thread Maarten Boekhold
Hi, I have a Substitute statement defined for a specific Location as:     FilterChain SUBST     ProxyPass stuff     Substitute s|fromText|toText|n A specific request that is handled by this Location returns with HTTP Status Code 201. The substitution does **not** take place. Another