Re: [users@httpd] root perms / rewritemap prg / module system()

2016-06-24 Thread Ben RUBSON
> On 24 Jun 2016, at 16:24, Stormy wrote: > > At 03:53 PM 6/24/2016 +0200, Ben RUBSON wrote: >> On 2016-06-08 at 14:24, Nick Kew wrote : >> > On Wed, 2016-06-08 at 08:01 -0400, Eric Covener wrote: >> >> On Sat, Apr 16, 2016 at 6:00 PM, Ben RUBSON wrote: >

Re: [users@httpd] root perms / rewritemap prg / module system()

2016-06-24 Thread Ben RUBSON
On 2016-06-08 at 14:24, Nick Kew wrote : > On Wed, 2016-06-08 at 08:01 -0400, Eric Covener wrote: >> On Sat, Apr 16, 2016 at 6:00 PM, Ben RUBSON wrote: >>> Then my question is, could it be possible ? >> >> You would need your own daemon launched during an early ho

[users@httpd] Re: New password protected certificates & conf reload

2016-06-13 Thread Ben RUBSON
> Is there any way to make this work as I am expecting ? Just for reference, I opened a feature request : https://bz.apache.org/bugzilla/show_bug.cgi?id=59693 - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For addit

[users@httpd] New password protected certificates & conf reload

2016-06-12 Thread Ben RUBSON
Hello, Let's assume a configuration with several HTTPS VirtualHosts. Each one has its own certificate with its own password protected key. All keys use the same password to simplify Apache start with "SSLPassPhraseDialog builtin". Yes goal is to avoid storing the password on the server itself (or

Re: [users@httpd] root perms / rewritemap prg / module system()

2016-06-08 Thread Ben RUBSON
> On 8 jun 2016 at 14:01, Eric Covener : > > On Sat, Apr 16, 2016 at 6:00 PM, Ben RUBSON wrote: >> Then my question is, could it be possible ? > > You would need your own daemon launched during an early hook (like > post_config). You wouldn't be able to respond [d

[users@httpd] Re: root perms / rewritemap prg / module system()

2016-06-08 Thread Ben RUBSON
Hello, Any thoughts on the topic below please ? Apache dev-team, Eric, Rainer... ? :) Many thanks ! Best regards, Ben > On 17 apr. 2016 at 00:00, Ben RUBSON : > > Hello, > > When Apache is started from root user (as all services are), even if it then > switches

Re: [users@httpd] Restart or Reload after changing MaxClients and ServerLimit

2016-04-24 Thread Ben RUBSON
> On Sun, Apr 24, 2016 at 3:08 PM, Ben RUBSON <mailto:ben.rub...@gmail.com>> wrote: > Reading the doc, seems that ServerLimit is related to MaxRequestWorkers > (which has a default set to 256). > > Ben > > > >> Le 24 avr. 2016 à 20:52, Cohen,

Re: [users@httpd] Restart or Reload after changing MaxClients and ServerLimit

2016-04-24 Thread Ben RUBSON
; did not increase ServerLimit to 400, but it threw an error that the attempt > to increase ServerLimit during a restart was ignored. > > Any ideas why I cannot increase the ServerLimit? > > Thanks, > > Laurence Cohen > > On Sun, Apr 24, 2016 at 11:15 AM, Ben RUBSON <

Re: [users@httpd] Restart or Reload after changing MaxClients and ServerLimit

2016-04-24 Thread Ben RUBSON
Hi, reload will do it ! Ben > Le 24 avr. 2016 à 17:14, Cohen, Laurence a écrit : > > Hi, > > I need to increase my httpd server's MaxClients and ServerLimit. Can I just > do a > > service httpd reload > > to load the new settings? > > Or do I need to do a > > service httpd restart > >

[users@httpd] root perms / rewritemap prg / module system()

2016-04-16 Thread Ben RUBSON
Hello, When Apache is started from root user (as all services are), even if it then switches to the configured user:group, the rewritemap programs run under root user. I use this "trick" under some circumstances to run some tasks under other identities from a rewritemap program.pl : system("su

Re: [users@httpd] Get UID/GID from a username string

2016-04-16 Thread Ben RUBSON
>>> Ben: have a look at how mod_rewrite accesses its own >>> ap_register_rewrite_mapfunc via >> >> So Rainer, I just quickly wrote my module, it works, many thanks for your >> help. >> >> Below is my code, I just have 2 questions regarding it : >> 1 - do I need to "free(pw)" ? > > (...) > So y

Re: [users@httpd] Get UID/GID from a username string

2016-04-16 Thread Ben RUBSON
> Ben: have a look at how mod_rewrite accesses its own > ap_register_rewrite_mapfunc via So Rainer, I just quickly wrote my module, it works, many thanks for your help. Below is my code, I just have 2 questions regarding it : 1 - do I need to "free(pw)" ? 2 - is "key = apr_palloc(r->pool, 7)" th

Re: [users@httpd] Get UID/GID from a username string

2016-04-15 Thread Ben RUBSON
n and register it with a name that is reasonable for > you and doesn't clash with what's already there in mod_rewrite. Sounds perfect, again, many thanks Rainar ! >> On Fri, Apr 15, 2016 at 12:19 PM, Ben RUBSON wrote: >>>>> I can't think of any solutio

Re: [users@httpd] Get UID/GID from a username string

2016-04-15 Thread Ben RUBSON
>> I can't think of any solution that would work out of the box, but >> you can always write your own apache module in C. > > > Which could provide nothing but a new internal rewritemap type. Rainer, Eric, Thank you very much for your feedback. Yes a new rewritemap seems to be the solution. typ

Re: [users@httpd] Get UID/GID from a username string [wd-vc]

2016-04-15 Thread Ben RUBSON
get you both values separated > by a colon: > > grep username /etc/passwd|cut -f3,4 -d: > > HTH > Kurt Bremser > AMOS Austria > > Newton was wrong. There is no gravity. The Earth sucks. > ____________ > Von: Ben RUBSON [ben.rub...@gmail

[users@httpd] Get UID/GID from a username string

2016-04-15 Thread Ben RUBSON
Hello, I already do it with a RewriteMap Perl script, but perhaps a faster (in terms of performance) solution exists. Let's assume an incoming request contains a username, is there a way to get the system UID of this username string (Linux/FreeBSD) ? And from a UID string, to get the correspondi

Re: [users@httpd] Avoid internal request on PATH_INFO

2016-04-08 Thread Ben RUBSON
> What I would like to avoid is the entry in the error log for > /additional/path/info which does not exist. What entry? >>> >>> Hello Eric, >>> >>> These messages : >>> client denied by server configuration: >>> /my_document_root/additional/path/info >>> >>> Only /my_docume

Re: [users@httpd] Avoid internal request on PATH_INFO

2016-04-07 Thread Ben RUBSON
> Le 7 avr. 2016 à 21:07, Ben RUBSON a écrit : > >>> What I would like to avoid is the entry in the error log for >>> /additional/path/info which does not exist. >> >> What entry? > > Hello Eric, > > These messages : > client denied by serv

Re: [users@httpd] Avoid internal request on PATH_INFO

2016-04-07 Thread Ben RUBSON
>> What I would like to avoid is the entry in the error log for >> /additional/path/info which does not exist. > > What entry? Hello Eric, These messages : client denied by server configuration: /my_document_root/additional/path/info Only /my_document_root/api/ and some other paths are availab

[users@httpd] Avoid internal request on PATH_INFO

2016-04-07 Thread Ben RUBSON
Hello, I have a Perl API which is requested like this : GET|POST|PUT|DELETE /api/script.pl/additional/path/info In Apache access log, of course, I see an entry for /api/script.pl What I would like to avoid is the entry in the error log for /additional/path/info which does not exist. This is cer