Hello to all,
I come to see you because I have various problems that do not seem very serious but which indicate that something is misconfigured.
All the basic functionalities seem to work (I can access my domain correctly, the chat is working etc…)
However, I want to connect my rocket chat with nextcloud, so I have except that during the integration itself inside nextcloud Firefox refuses to open the page and it tells me this:
Firefox can’t open this page
To protect your security, my_chat.com will not allow Firefox to display the page if it is integrated by another site. To view this page, you must open it in a new window.
The other problem is the webdav link, this one seems to work unstable because when I want to retrieve a file on the server and I select it, the loading does not take place (the files of nextcloud are however visible from the rocket server)
note that a message from rocket appeared several times telling me that I was trying to connect to localhost and offered to redirect everything to my domain name which is secure, perhaps I should not have accepted.
Here is what the apache logs say:
[Fri Apr 08 12:09:17.803453 2022] [proxy:error] [pid 345590] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:3000 (*) failed
[Fri Apr 08 12:09:17.803658 2022] [proxy_http:error] [pid 345590] [client xx.xx.xx.xx.xx:46098] AH01114: HTTP: failed to make connection to backend: localhost, referer: my_chat.com/admin/cloud
My vhost file :
<VirtualHost *:80>
ServerName my_chat.com
RewriteEngine on
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{SERVER_PORT} !^443$
<VirtualHost *:443>
ServerAdmin admin@localhost.fr
ServerName my_chat.com
LogLevel info
ErrorLog /var/log/chat.domain.com_error.log
TransferLog /var/log/chat.domain.com_access.log
SSLEngine On
SSLCertificateFile /etc/letsencrypt/live/my_chat.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/my_chat.com/privkey.pem
Require all granted
RewriteEngine On
RewriteCond %{HTTP:CONNECTION} Upgrade [NC]
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://localhost:3000/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*) http://localhost:3000/$1 [P,L]
ProxyPassReverse / http://localhost:3000/
I’m using debian 11 and installed rocket via snap, If you need any other information, don’t hesitate.
I thank you all in advance
Sincerely
PS :
I saw that this video was available https://www.youtube.com/watch?v=AshE2uG87GE
So I followed what had to be deactivated to allow me the integration there Unfortunately it doesn’t work even though I followed this video to the letter
I thought I understood while doing research that firefox or chrome refuse the page because I don’t have the right header in my vhost.
So I’m trying to find out which header would be succeptible to match so that the integration works. Assuming of course that the problem comes from there (yes if we believe anyway the help page of firefox)
So far even something permissive and not recommended like this header Header always set X-Frame-Options “ALLOWALL” didn’t change anything. So I’m continuing my research and waiting for someone with more experience to answer