Yes currently I am trying to enable SSL but still couldn't get luck on this. I 
have ssl self signed keys certs etc. also SSLProxyEngine is also configured, 
but I am getting 400 Bad request error on XHR requests. I can see login page on 
https url but it is not able to communicate with server over XHR. My final 
Virtualhost config:

<IfModule mod_ssl.c>
        <VirtualHost _default_:443 [::]:443>
                ServerAdmin turkel atgmx.com
                
                ServerName con.aztut.ml

                SSLEngine on
                SSLCertificateFile      /opt/red5403/cert/certserver.crt
                SSLCertificateKeyFile /opt/red5403/cert/certserver.key
                
                SSLProxyEngine On
                SSLProxyCheckPeerCN on
                SSLProxyCheckPeerExpire off
                ProxyPass / http://localhost:5080/
                ProxyPassReverse / http://localhost:5080/
                
                ProxyPreserveHost On
                ProxyRequests Off
                ProxyPass / http://localhost:5080/
                ProxyPassReverse / http://localhost:5080/
                
                RewriteEngine on
                RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
                RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
                RewriteRule .* ws://localhosts:5080%{REQUEST_URI} [P]
                
                ErrorLog /var/log/apache2/red5-error_log
                CustomLog /var/log/apache2/red5-access_log common

        </VirtualHost>
</IfModule>
 
 
I am getting error on XHR request to below url:
https://con.aztut.ml/openmeetings/wicket/bookmarkable/org.apache.openmeetings.web.pages.auth.SignInPage?13-1.2-signin

Request Header:
POST 
/openmeetings/wicket/bookmarkable/org.apache.openmeetings.web.pages.auth.SignInPage?13-1.2-signin
 HTTP/1.1
Host: con.aztut.ml
Connection: keep-alive
Content-Length: 30
Pragma: no-cache
Cache-Control: no-cache
Origin: https://con.aztut.ml
Wicket-FocusedElementId: btn63
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 
(KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept: application/xml, text/xml, */*; q=0.01
X-Requested-With: XMLHttpRequest
Wicket-Ajax: true
Wicket-Ajax-BaseURL: signin
Referer: https://con.aztut.ml/openmeetings/signin
Accept-Encoding: gzip, deflate, br
Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,tr;q=0.7
Cookie: JSESSIONID=F9C111885A80DCBC8EE65DCF73AD1C7A; 
wicket-ajaxdownload-id339-1=complete



Regards
Turkel.



Sent: Monday, May 14, 2018 at 6:42 AM
From: "Maxim Solodovnik" <solomax...@gmail.com>
To: "Openmeetings user-list" <user@openmeetings.apache.org>
Cc: "om.insig...@coscend.com" <om.insig...@coscend.com>
Subject: Re: RE: Apache websocket 404

Good to know!
Thanks for sharing!
 
BTW you might need to enable HTTPS to get camera/microphone working 
https://goo.gl/rStTGz
 
On Sat, May 12, 2018 at 10:59 PM, Turkel Alizadeh 
<tur...@gmx.com[mailto:tur...@gmx.com]> wrote:Hi All,

My issue is solved by editing my Apache site configuration like below:


<VirtualHost *:80>
        ServerAdmin admin@admin

        ServerName con.aztut.ml[http://con.aztut.ml]

        RewriteEngine on
        RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
        RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
        RewriteRule .* ws://localhost:5080%{REQUEST_URI} [P]

        ProxyPreserveHost On
        ProxyRequests Off
        ProxyPass / http://localhost:5080/[http://localhost:5080/]
        ProxyPassReverse / http://localhost:5080/[http://localhost:5080/]
        ErrorLog /var/log/apache2/red5-error_log
        CustomLog /var/log/apache2/red5-access_log common
</VirtualHost>
 
 
Regards.



Sent: Saturday, May 12, 2018 at 12:56 PM
From: "Turkel Alizadeh" <tur...@gmx.com[mailto:tur...@gmx.com]>
To: user@openmeetings.apache.org[mailto:user@openmeetings.apache.org], 
om.insig...@coscend.com
Cc: user@openmeetings.apache.org[mailto:user@openmeetings.apache.org]
Subject: Re: RE: Apache websocket 404
Do I need to reinstall application without domain and use local IPs? Currently 
my setup is on con.aztut.ml[http://con.aztut.ml] domain, you can see error on 
console after login.     Sent: Thursday, May 10, 2018 at 7:46 AM From: 
"Coscend@OM" To: 
user@openmeetings.apache.org[mailto:user@openmeetings.apache.org] Subject: RE: 
Apache websocket 404 Hello Turkel, Further, to isolate the issue, you might 
want to test run your installation without the proxy server and with only 
firewall router. Some firewall routers do not support WebSockets in default 
setting. To bypass proxy server, you can use IP address (within LAN, either in 
local network or through VPN) Server / domain name. Thank you. Sincerely, 
Hemant K. Sabat 
------------------------------------------------------------------ Real-time, 
Interactive Video Collaboration, Tele-healthcare, Tele-education, Telepresence 
Services, on the fly… 
------------------------------------------------------------------ 
CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail Messages 
from Coscend Communications Solutions' posted at: 
http://www.Coscend.com/Anchor/Common/Terms_and_Conditions.html[http://www.Coscend.com/Anchor/Common/Terms_and_Conditions.html]
 -----Original Message----- From: Coscend@OM Sent: Wednesday, May 9, 2018 5:43 
PM To: 'Turkel Alizadeh' ; 
user@openmeetings.apache.org[mailto:user@openmeetings.apache.org] Cc: 
user@openmeetings.apache.org[mailto:user@openmeetings.apache.org] Subject: 
Apache websocket 404 Hello Tukrel, So that I understand your setup to be able 
to provide any additional vectors, could you share the following: Is your 
setup: Reverse proxy HTTPD + HTTP OM? Are you converting HTTPS --> HTTP in 
front of reverse proxy HTTPD? If so, did you happen to review the log files of 
your OM installation? And the access log files of your HTTPD installation? 
Thank you. Sincerely, Hemant K. Sabat 
------------------------------------------------------------------ Real-time, 
Interactive Video Collaboration, Tele-healthcare, Tele-education, Telepresence 
Services, on the fly… 
------------------------------------------------------------------ 
CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail Messages 
from Coscend Communications Solutions' posted at: 
http://www.Coscend.com/Anchor/Common/Terms_and_Conditions.html[http://www.Coscend.com/Anchor/Common/Terms_and_Conditions.html]
 -----Original Message----- From: Turkel Alizadeh Sent: Wednesday, May 9, 2018 
1:57 PM To: user@openmeetings.apache.org[mailto:user@openmeetings.apache.org]; 
om.insig...@coscend.com Cc: 
user@openmeetings.apache.org[mailto:user@openmeetings.apache.org] Subject: Re: 
RE: Apache websocket 404 Hi Hemant, I am resending same message because web 
mailing shows improper format of content. http proxy works OK as it redirects 
domain root requests / to server internal port localhost:5080. This is also 
same with ws redirection to internal localhost ws link with port 5080. Login 
page works ok which gets redirected with http proxy: ProxyPass / 
http://localhost:5080/[http://localhost:5080/] ProxyPassReverse / 
http://localhost:5080/[http://localhost:5080/] Regards, Turkel. Sent: 
Wednesday, May 09, 2018 at 6:53 AM From: "Coscend@OM" To: 
user@openmeetings.apache.org[mailto:user@openmeetings.apache.org] Subject: RE: 
Apache websocket 404 Hello Turkel, Here is a vector to investigate. Should the 
URLs below point to the same domain? Without this, how would the WebSocket 
request not find the resource to display? ServerName 
con.domain.com[http://con.domain.com] … ProxyPass / 
http://localhost:5080/[http://localhost:5080/] Thank you. Sincerely, Hemant K. 
Sabat Coscend Communications Solutions 
www.Coscend.com[http://www.Coscend.com][http://www.coscend.com/[http://www.coscend.com/]]
 ------------------------------------------------------------------ Real-time, 
Interactive Video Collaboration, Tele-healthcare, Tele-education, Telepresence 
Services, on the fly… 
------------------------------------------------------------------ 
CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail Messages 
from Coscend Communications Solutions' posted at: 
http://www.Coscend.com/Anchor/Common/Terms_and_Conditions.html[http://www.Coscend.com/Anchor/Common/Terms_and_Conditions.html][http://www.Coscend.com/Anchor/Common/Terms_and_Conditions.html[http://www.Coscend.com/Anchor/Common/Terms_and_Conditions.html]]
 From: Turkel Alizadeh Sent: Tuesday, May 8, 2018 3:03 PM To: 
user@openmeetings.apache.org[mailto:user@openmeetings.apache.org] Subject: 
Apache websocket 404 Hi, I am trying to install openmeetings 4.0.3 application 
into my debian server by attached tutorial which I got from official 
openmeetings website. I have followed every step and got to login page 
successfully, but I got problem after login as client cant reach server 
websocket protocol. I am getting following error on my browser console: 
WebSocket connection to 
'ws://domain.com/openmeetings/wicket/websocket?pageId=2&wicket-ajax-baseurl=.&wicket-app-name=OpenmeetingsApplication[http://domain.com/openmeetings/wicket/websocket?pageId=2&wicket-ajax-baseurl=.&wicket-app-name=OpenmeetingsApplication]'
 failed: Error during WebSocket handshake: Unexpected response code: 404 My 
apache2 domain configurration is below: ServerAdmin 
m...@domain.com[mailto:m...@domain.com][mailto:m...@domain.com[mailto:m...@domain.com]]
 ServerName con.domain.com[http://con.domain.com] ProxyPreserveHost On 
ProxyRequests Off ProxyPass /ws2/ ws://localhost:5080/ ProxyPassReverse /ws2/ 
ws://localhost:5080/ ProxyPass /wss2/ ws://YOUR_DOMAIN:WS_PORT/ ProxyPass / 
http://localhost:5080/[http://localhost:5080/][http://localhost:5080/[http://localhost:5080/]]
 ProxyPassReverse / 
http://localhost:5080/[http://localhost:5080/][http://localhost:5080/[http://localhost:5080/]]
 ErrorLog /var/log/apache2/red5-error_log CustomLog 
/var/log/apache2/red5-access_log common Please advise possible troublshooting 
and solution for this issue. Best Regards, Turkel. 
------------------------------------------------------------ 
[http://www.avg.com/internet-security[http://www.avg.com/internet-security]] 
This email has been checked for viruses by AVG antivirus software. 
www.avg.com[http://www.avg.com][http://www.avg.com/internet-security[http://www.avg.com/internet-security]]
 --- This email has been checked for viruses by AVG. 
http://www.avg.com[http://www.avg.com] 
 --
WBR
Maxim aka solomax

Reply via email to