[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] Apache proxy keeps cache directory empty

2016-04-16 Thread Rainer Jung
Am 15.04.2016 um 23:02 schrieb Bjoern Voigt: Since some years I run a local Apache proxy cache for localhost and the 192.168.1.0/24 network. My proxy cache directory /var/cache/apache-proxy is cleaned by a htcacheclean weekly cron job. In the meantime Apache stopped writing files in my cache dir

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

2016-04-16 Thread Rainer Jung
Am 16.04.2016 um 12:09 schrieb 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)"

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] apache httpd 2.4 loadmodule

2016-04-16 Thread Luca Toscano
Hi David, 2016-04-15 19:02 GMT+02:00 David Long : > We are upgrading our apache 2.2 to 2.4 and found out a lot of module need > to be loaded. > > Like authz_core_module, dir_module, setenvif_module, mime_module etc. > > But those module were not need to load at 2.2. 2.2 will have those by > defau