Re: Apache reverse proxy

2017-07-21 Thread Stefan Pernar
This worked for me:
https://codeforgeek.com/2015/12/reverse-proxy-using-expressjs/

On 21 Jul 2017 9:32 PM, "Helmut K. C. Tessarek" 
wrote:

On 2017-07-21 15:28, Stefan Pernar wrote:
> Thanks everyone. Got it done with nodejs, express and http-proxy.

You know, it is utterly useless to say you have fixed it without telling
people how you did it.

--
regards Helmut K. C. Tessarek  KeyID 0xF7832007C11F128D
Key fingerprint = 28A3 1666 4FE8 D72C CFD5 8B23 F783 2007 C11F 128D

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/


Re: Apache reverse proxy

2017-07-21 Thread Helmut K. C. Tessarek
On 2017-07-21 15:28, Stefan Pernar wrote:
> Thanks everyone. Got it done with nodejs, express and http-proxy.

You know, it is utterly useless to say you have fixed it without telling
people how you did it.

-- 
regards Helmut K. C. Tessarek  KeyID 0xF7832007C11F128D
Key fingerprint = 28A3 1666 4FE8 D72C CFD5 8B23 F783 2007 C11F 128D

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/


Re: Apache reverse proxy

2017-07-21 Thread Stefan Pernar
Thanks everyone. Got it done with nodejs, express and http-proxy.
Cheers

On 21 Jul 2017 6:41 PM, "Yann Ylavic"  wrote:

> On Fri, Jul 21, 2017 at 6:26 PM, Stefan Pernar 
> wrote:
> > Good catch - unfortunately it is still not working...
>
> Please define not working...
>
> Regards,
> Yann.
>


Re: Apache reverse proxy

2017-07-21 Thread Yann Ylavic
On Fri, Jul 21, 2017 at 6:26 PM, Stefan Pernar  wrote:
> Good catch - unfortunately it is still not working...

Please define not working...

Regards,
Yann.


Re: Apache reverse proxy

2017-07-21 Thread Rainer Canavan
> [...] What am I doing wrong?

[...]
> 
>   ProxyPass "http://127.0.0.1:3000/;
>   ProxyPassReverse "http://127.0.0.0:3000/;
^
That should be a 127.0.0.1.


rainer


Apache reverse proxy

2017-07-21 Thread Stefan Pernar
Hi everyone,

I am running a node.js app on port 3000 and am serving PHP on port 3001.
Now I am trying to use Apache reverse proxy with the following .conf but it
just does not work. What am I doing wrong?


Options Indexes MultiViews
Require all granted


LoadModule proxy_module libexec/apache2/mod_proxy.so
LoadModule proxy_http_module libexec/apache2/mod_proxy_http.so


  ProxyPass "http://127.0.0.1:3001/;
  ProxyPassReverse "http://127.0.0.1:3001/;



  ProxyPass "http://127.0.0.1:3000/;
  ProxyPassReverse "http://127.0.0.0:3000/;


-- 
Would you like to send me an encrypted message? I recommend GnuPG
<https://gnupg.org/index.html> - you can find my public key here
<https://pgp.mit.edu/pks/lookup?op=get=0x9EACB563201A65E2>.