Re: [users@httpd] How to auto-select SSL certificate by hostname

2018-09-12 Thread Yehuda Katz
There is no built-in way to handle this. You would need to list every domain name as a server alias for HTTPD to select the correct certificate. You could look at mod_macro so you don't need to rewrite the same configuration multiple times or a configuration management tool like Puppet/Chef/etc tha

[users@httpd] How to auto-select SSL certificate by hostname

2018-09-12 Thread craig
I am trying to configure a server that has the singular purpose of redirecting https://anyhost.com to https://www.anyhost.com. Without SSL, this is trivial: create a single configuration that uses Rewrite to redirect to www.{%HOST}. Bringing SSL into it complicates things however. We'll be doin

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

2018-09-12 Thread Yann Ylavic
On Wed, Sep 12, 2018 at 12:48 PM Hemant Chaudhary wrote: > > Actually it is setting sock->timeout to 0 in writev_nonblocking() in > core_filters.c. > arv = apr_socket_timeout_set(s, 0); > > Why does the default timeout is changed and set to 0 ?? Because writev_nonblocking() is really non-blocki

Re: [users@httpd] How to avoid plain password in mod_ldap

2018-09-12 Thread Gillis J. de Nijs
The documentation states that you can use an executable to return the password. Since the password is read on server startup, you could make that script owned by root and give it rx permissions for root only. That should make sure no one (except root) can read your password. https://httpd.apache

[users@httpd] How to avoid plain password in mod_ldap

2018-09-12 Thread Rathore, Rajendra
There are a plain password store in mod_ldap. Is there any way to encrypt the password? Like: AuthLDAPBindPassword password Thanks and Regards, Rajendra Rathore 9922701491

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

2018-09-12 Thread Hemant Chaudhary
Hi All, Actually it is setting sock->timeout to 0 in writev_nonblocking() in core_filters.c. arv = apr_socket_timeout_set(s, 0); Why does the default timeout is changed and set to 0 ?? Thanks Hemant On Wed, Sep 12, 2018 at 4:03 PM Hemant Chaudhary < hemantdude.chaudh...@gmail.com> wrote: > Hi

[users@httpd] Non Blocking write in apache

2018-09-12 Thread Hemant Chaudhary
Hi All, I am using proxy_http to proxy my request to tomcat from apache. But in non-blocking call it is not working properly(timeout issue). I am using the default timeout i:e 60 sec. When writev returns -1 with errorno==4101, it should wait and then again try for write. while ((rv == -1) && (err