Re: Web sockets & proxypass - No protocol handler was valid for the URL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 28, 2016 at 4:47 PM, Adam Teale <adam@xxxxxxxxxx> wrote:
>
> As far as I know the "normal" http traffic is via "/chat/" (well at least
> that is visited page url).
>
> When that page loads is connects to "/chat/stream" via the wss:// protocol
> using a javascript library called "reconnecting-websocket".

I know nothing about this lib, but from previous logs it seemed that
"/chat/stream" was accessed before/without the Upgrade to websocket.

Maybe mod_dumpio could be loaded and enabled ("DumpIoIn on" +
"DumpIoOutput on"), with "LogLevel trace7", to see the real HTTP data?

>
> I have just tried:
> ProxyPass /chat/ https://localhost:8000/chat/
> ProxyPass /chat/stream wss://localhost:8000/chat/stream
>
> Now Apache just sits there and nothing loads -
>
> [Wed Dec 28 12:41:14.523727 2016] [proxy:debug] [pid 45890]
> mod_proxy.c(1198): [client 127.0.0.1:62404] AH01143: Running scheme https
> handler (attempt 0)
>
> [Wed Dec 28 12:41:14.523739 2016] [proxy:debug] [pid 45890]
> proxy_util.c(2154): AH00942: HTTPS: has acquired connection for (localhost)
>
> [Wed Dec 28 12:41:14.523749 2016] [proxy:debug] [pid 45890]
> proxy_util.c(2208): [client 127.0.0.1:62404] AH00944: connecting
> https://localhost:8000/chat/ to localhost:8000
>
> [Wed Dec 28 12:41:14.523777 2016] [proxy:debug] [pid 45890]
> proxy_util.c(2417): [client 127.0.0.1:62404] AH00947: connected /chat/ to
> localhost:8000
>
> [Wed Dec 28 12:41:14.523946 2016] [proxy:debug] [pid 45890]
> proxy_util.c(2798): (61)Connection refused: AH00957: HTTPS: attempt to
> connect to [::1]:8000 (localhost) failed
>
> [Wed Dec 28 12:41:14.524222 2016] [proxy:debug] [pid 45890]
> proxy_util.c(2807): AH02824: HTTPS: connection established with
> 127.0.0.1:8000 (localhost)
>
> [Wed Dec 28 12:41:14.524266 2016] [proxy:debug] [pid 45890]
> proxy_util.c(2975): AH00962: HTTPS: connection complete to [::1]:8000
> (localhost)
>
> [Wed Dec 28 12:41:14.524283 2016] [ssl:info] [pid 45890] [remote
> 127.0.0.1:8000] AH01964: Connection to child 0 established (server
> alfred.local:80)

Nothing wrong here, no further error?
Probably LogLevel trace7 (and mod_dumpio) could tell more.

>
> Browser
> Proxy Error
> The proxy server received an invalid response from an upstream server.
> The proxy server could not handle the request GET /chat/.
> Reason: Error reading from remote server

Hmm, is //localhost:8000/chat/ expecting https traffic?


Regards,
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux