LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-21-2019, 04:50 AM   #1
shidrang
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Rep: Reputation: 1
Apache traffic server on forward mode does not pass websocket


Hi, I configure my traffic server with its website guideline (only remove x-forward and via header). But I have a problem with wss requests. On network panel of firefox developer tools, there is no response, it shows error:

The connection to fetch this resource was not secure

How can I fix it?
 
Old 12-22-2019, 02:38 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,736

Rep: Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213
Quote:
Originally Posted by shidrang View Post
Hi, I configure my traffic server with its website guideline (only remove x-forward and via header). But I have a problem with wss requests. On network panel of firefox developer tools, there is no response, it shows error:

The connection to fetch this resource was not secure

How can I fix it?
That message simply means you've asked for a secure connection and the server is not capable of providing it -- either because it does not have a certificate or it's not configured correctly to use a certificate.

Is this your server?
 
Old 12-23-2019, 02:23 AM   #3
shidrang
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Original Poster
Rep: Reputation: 1
The main connection is based on https, and the certificate is ok, but for any websocket request, its gave a certificate error. Its not just for an website, apache traffic server gave the error for all domain. And yes, this is my server, I have full access on it.
 
Old 12-23-2019, 02:34 AM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,736

Rep: Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213
Quote:
Originally Posted by shidrang View Post
The main connection is based on https, and the certificate is ok, but for any websocket request, its gave a certificate error. Its not just for an website, apache traffic server gave the error for all domain. And yes, this is my server, I have full access on it.
I'd not heard of websockets prior to this, so can only speculate: Perhaps the certificate doesn't cover the URI that the websocket is using? I know the certs I use only cover domain.com and www.domain.com -- other URLs or sub-domains are not included. Again, I'm just guessing. Mayhaps someone else will chime in.
 
Old 12-23-2019, 02:51 AM   #5
shidrang
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Original Poster
Rep: Reputation: 1
I use apache traffic server as forward proxy, not as reverse proxy, so the certificate(s) is not mine. While I request any website, that contain ws (websocket) request, the whole site will be loaded except websocket part!

Last edited by shidrang; 12-23-2019 at 03:36 AM.
 
Old 12-27-2019, 03:32 AM   #6
Anton35io
LQ Newbie
 
Registered: Dec 2019
Posts: 1

Rep: Reputation: Disabled
Traffic Server has had an ICP module for the longest time, which unfortunately has been non-functional liteblue.

Last edited by Anton35io; 01-02-2020 at 12:47 AM.
 
Old 10-04-2021, 03:03 AM   #7
panoramacharter
LQ Newbie
 
Registered: Oct 2021
Posts: 1

Rep: Reputation: Disabled
Apache traffic server on forward mode does not pass websocket

FWIW, Apache 2.4 in CentOS 7.1 has this bug therefore rewrite won't recognize ws:// protocol, and prepends the domain before sending the subrequest. You can test yourself by changing the [P]roxy flag to [R]edirect.charter panorama

Last edited by panoramacharter; 10-05-2021 at 05:13 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
JS Websocket from scratch - What error? wh33t Programming 2 05-24-2017 02:33 AM
Webserver to websocket server connection issue rtlm1 Linux - Networking 1 05-11-2015 02:30 PM
WebSocket over SSH tunnel - is it possible? Vlad.BG Linux - Networking 3 01-18-2015 07:42 AM
LXer: How to configure Varnish for WebSocket traffic LXer Syndicated Linux News 0 04-04-2014 07:41 PM
OpenVPN sometimes does not forward all traffic to server depam Linux - Software 1 06-28-2008 04:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration