Re: [users@httpd] Using mod_lua to modify request body before being sent to mod_proxy

2016-04-15 Thread Eric Covener
On Fri, Apr 15, 2016 at 9:10 PM, Matt Hughes wrote: > I currently have Apache setup as a reverse proxy to another server. > > I was hoping to use mod_lua to slightly tweak the request body of incoming > requests before sending them off to the other server. I have mod_lua setup > enough so that I h

[users@httpd] Using mod_lua to modify request body before being sent to mod_proxy

2016-04-15 Thread Matt Hughes
I currently have Apache setup as a reverse proxy to another server. I was hoping to use mod_lua to slightly tweak the request body of incoming requests before sending them off to the other server. I have mod_lua setup enough so that I have a LuaHookInsertFilter that is pointing to my LuaInputFi

[users@httpd] Rewrite rules in .htaccess: Internal redirect loop

2016-04-15 Thread Thomas Ulrich
Hi everyone, I'm trying to track down a problem with rewrite rules. I have set up a WordPress multisite installation. In the root directory of this installation, there's a .htaccess file which contains some rewrite rules. I've copy&pasted the content of the .htaccess file to the bottom of this

[users@httpd] Apache proxy keeps cache directory empty

2016-04-15 Thread 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 directory /var/cache/apache-proxy. The proxy funct

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

2016-04-15 Thread Ben RUBSON
>> Well, it is one option to extend mod_rewrite. What I meant >> specifically was that any module can implement a rewritemap internal >> function. > > Yes, the feature seems to be a bit too specific for general implementation in > mod_rewrite. I was thinking about mod_rewrite because these funct

[users@httpd] Re: apache httpd 2.4 loadmodule

2016-04-15 Thread Good guy
On 15/04/2016 18:02, David Long wrote: 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 default. Can someone t

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

2016-04-15 Thread Rainer Jung
Am 15.04.2016 um 18:59 schrieb Rainer Jung: Am 15.04.2016 um 18:35 schrieb Eric Covener: Well, it is one option to extend mod_rewrite. What I meant specifically was that any module can implement a rewritemap internal function. Yes, the feature seems to be a bit too specific for general impleme

[users@httpd] apache httpd 2.4 loadmodule

2016-04-15 Thread 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 default. Can someone tell me what are commonly used modules we need

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

2016-04-15 Thread Rainer Jung
Am 15.04.2016 um 18:35 schrieb Eric Covener: Well, it is one option to extend mod_rewrite. What I meant specifically was that any module can implement a rewritemap internal function. Yes, the feature seems to be a bit too specific for general implementation in mod_rewrite. Ben: have a look a

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

2016-04-15 Thread Eric Covener
Well, it is one option to extend mod_rewrite. What I meant specifically was that any module can implement a rewritemap internal function. On Fri, Apr 15, 2016 at 12:19 PM, Ben RUBSON wrote: >>> I can't think of any solution that would work out of the box, but >>> you can always write your own apa

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

2016-04-15 Thread Eric Covener
On Fri, Apr 15, 2016 at 9:38 AM, Rainer Canavan wrote: > 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. -- Eric Covener cove...@gmail.com

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

2016-04-15 Thread Rainer Canavan
On Fri, Apr 15, 2016 at 9:14 AM, Ben RUBSON wrote: > 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

AW: [users@httpd] Can't activate LDAPS support in my OpenSSL 1.0.2g/OpenLDAP 2.4.44/Apache 2.4.18/PHP 5.6.20 combination

2016-04-15 Thread Poggenpohl, Daniel
Hello again, To use OpenLDAP instead of the Solaris implementation I just had to configure curl like this: CURLDIR=/moodle/curl/7.48.0 \ OPENSSLDIR=/moodle/openssl/1.0.2g \ OPENLDAPDIR=/moodle/openldap/2.4.44 \ ; \ export \ CFLAGS= \ CPPFLAGS="-I$OPENLDAPDIR/include -I$OPENSSLDIR/include" \ LDFL

AW: [users@httpd] Can't activate LDAPS support in my OpenSSL 1.0.2g/OpenLDAP 2.4.44/Apache 2.4.18/PHP 5.6.20 combination

2016-04-15 Thread Poggenpohl, Daniel
Hello again, after fixing the rpaths in my binaries/libraries for Postgres and the curl that was used during runtime (prepended /moodle/openssl/latest/lib), which wasn't /usr/bin/curl, but /usr/local/bin/curl... I could finally remove the OpenSSL path from LD_LIBRARY_PATH. Doing the same with

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

2016-04-15 Thread Ben RUBSON
Well I would like to be able to do it on the fly when a request is proceeded by Apache. Through mod_rewrite for example. I already do it with a RewriteMap which returns me UID/GID, but perhaps there is a less time consuming solution. Ben > In case your system uses /etc/passwd, this will get y

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

2016-04-15 Thread Bremser, Kurt (AMOS Austria GmbH)
In case your system uses /etc/passwd, this will 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.com]

[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