Re: [users@httpd] Control / Modify the HTTP Status Line

2019-05-22 Thread Shmuel Krakower
Thanks Torsten, I was reading and implementing a simple PerlResponseHandler script to set the response status line/code. It works fine as a standalone, but it seems like in conjuction with mod_proxy, it has no affect. It feels like this handler is not manipulating the response coming back from the

Re: [users@httpd] RE: Need some advice - thread safe php module

2019-05-22 Thread Ruben Safir
On 5/22/19 4:11 PM, Jeff Cauhape wrote: > Hi, > > I am porting some older web pages from Apache 2.4.6 to Apache 2.4.37 on Linux > and apparently need to find a thread-safe version of libphp5.so to use, since > we're > running MPM. > > > * Does anyone know where I can download the apache thr

RE: [users@httpd] RE: Need some advice - thread safe php module

2019-05-22 Thread Jeff Cauhape
Yehuda, But how do you tell if the Apache thread-safe module is included? I’ve already wasted more than enough time on this task, and I’d like some way to determine I’m not just wasting more time. Thanks, Jeffrey Cauhape – IT Professional III – Linux and Solaris Administrator Nevada Department o

Re: [users@httpd] RE: Need some advice - thread safe php module

2019-05-22 Thread Yehuda Katz
We are happy with Remi's Repo: https://rpms.remirepo.net/wizard/ (Remi is a core PHP team member). You should consider newer versions of PHP (7.1+) as older version are no longer maintained, unless you use the version supplied by RedHat (since they are still updating it). - Y On Wed, May 22, 20

Re: [users@httpd] Control / Modify the HTTP Status Line

2019-05-22 Thread Torsten Krah
Hi, you could use a mod_perl output filter handler to rewrite the response to your needs based on the input. Did that for some specific SaaS years ago and for some response with e.g. a special header the filter answered somerhing totally different and discarded the original response. Happy coding

Re: [users@httpd] Control / Modify the HTTP Status Line

2019-05-22 Thread Shmuel Krakower
Hi matt and lbutlr Thanks for the response. I guess I should add few pieces of information. The client is one SaaS and the backend is another SaaS. The backend returns 302 which is right but the client consider anything which is not 2xx as error which cause it to retry. Therefore I must "hack" or

[users@httpd] RE: Need some advice - thread safe php module

2019-05-22 Thread Jeff Cauhape
I should mention this is running on RHEL 7.6, x86_64. Jeffrey Cauhape - IT Professional III - Linux and Solaris Administrator Nevada Department of Employment, Training and Rehabilitation (775) 684-3804 (office) jpcauh...@detr.nv.gov From: Jeff Cauhape Sent: Wedn

[users@httpd] Need some advice - thread safe php module

2019-05-22 Thread Jeff Cauhape
Hi, I am porting some older web pages from Apache 2.4.6 to Apache 2.4.37 on Linux and apparently need to find a thread-safe version of libphp5.so to use, since we're running MPM. * Does anyone know where I can download the apache thread safe php module? * If not, can someone give me a c

RE: [users@httpd] Control / Modify the HTTP Status Line

2019-05-22 Thread Muggeridge, Matt
With a little googling, this technique looks promising… https://stackoverflow.com/questions/15083481/how-can-i-replace-apache-http-code-404-to-200 * As I cannot alter the backend behaviour Yet, you talk about using mod_substitute and mod_header to alter the server’s behaviour. If the 302

[users@httpd] Re: Control / Modify the HTTP Status Line

2019-05-22 Thread @lbutlr
On 22 May 2019, at 12:00, Shmuel Krakower wrote: > I am using Apache for proxying a backend server. > The backend server may return, in some occaisons, a 302 response code for > successful requests. This is incorrect behavior and you should fix that, not try to hack the reply codes. -- "Humor

[users@httpd] Control / Modify the HTTP Status Line

2019-05-22 Thread Shmuel Krakower
Hello, This is my first message on this user list, hope that's the right place for my question. I am using Apache for proxying a backend server. The backend server may return, in some occaisons, a 302 response code for successful requests. As I cannot alter the backend behavior nor the client's to