Comments (11)
Unfortunately, I have no experience with Apache nor the time to set it up and test.
It sounds like the websocket connection is not successfully upgrading. It does a handshake process first over https, then upgrades to wss.
You'll notice in the Nginx config that there's special handling for the Upgrade and Connection headers. You'll need to replicate that part as well.
I'll keep this open for a bit. Let me know how it goes!
from remotely.
Sorry that it took me so long to get back to this, but I did end up getting it to work. Attached is a stripped down config for Apache2.4 that removes everything personal to my server. Feel free to include it as an option for those who don't want or can't load Ngnix.
<IfModule mod_ssl.c>
<VirtualHost *.443>
ServerName {FQDN}
ServerAdmin {Admin Email}
#Forward once Websocket Connection has been upgraded.
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://localhost:5000/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*) http://localhost:5000/$1 [P,L]
ProxyPreserveHost On
#Proxy Requests to Remotely Server
<LocationMatch "/">
ProxyPass http://localhost:5000/
ProxyPassReverse http://localhost:5000/
</LocationMatch>
<Location "/BrowserHub">
ProxyPass http://localhost:5000/
ProxyPassReverse http://localhost:5000/
</Location>
<LocationMatch "/DeviceHub">
ProxyPass http://localhost:5000/
ProxyPassReverse http://localhost:5000/
</LocationMatch>
<LocationMatch "/RCBrowserHub">
ProxyPass http://localhost:5000/
ProxyPassReverse http://localhost:5000/
</LocationMatch>
<LocationMatch "/RCDeviceHub">
ProxyPass http://localhost:5000/
ProxyPassReverse http://localhost:5000/
</LocationMatch>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLCertificateFile {Path to fullchain.pem}
SSLCertificateKeyFile {Path to key.pem}
Include /etc/letsencrypt/options-ssl-apache.conf #Change this to wherever your apache options for LE are, or ignore if you don't use LE
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
</IfModule>
from remotely.
Awesome! Thanks! I'll include this in the Utilities folder as an example.
from remotely.
Hey @jay-rad, please put the file in the Utilities folder. Took me quite some time to find the apache sample config. 😉
from remotely.
@Zeik0s Sorry! I thought I did, but messed up. I uploaded it now. :)
from remotely.
@agottschling I tried your config for apache, i am still getting the errors. I am using plain http for testing, can this be the reason?
from remotely.
@Zeik0s This config is built for an SSL site. What errors are you gettings?
from remotely.
Every few seconds a little window pops up with a message "the connection was lost, please reconnect" or something like that. I am currently not in range of the PC i am testing on.
from remotely.
I know, i commented every ssl related line out, so basically it should be fine. Of course i changed the Port to 80.
from remotely.
Another thing to check is if mod_proxy_wstunnel is enabled. If it's not, that would explain why it's not working.
from remotely.
I haven't, i only enabled mod_proxy and mod_proxy_http. Will try it later, thx a lot.
Edit: it works now and the device is connected.
from remotely.
Related Issues (20)
- High CPU, RAM and I/O usage HOT 15
- How to build HOT 1
- add certificate in remotly step by step HOT 2
- Turn off auto-update the agent on Windows HOT 1
- FEATURE REQUEST: Record the remote screen HOT 1
- Device ID is missing. Cant use Get support ! HOT 2
- How to update? look like everything has changed... HOT 2
- SSO OAUTH HOT 3
- Add More Modern TLS Support for Install-Remotely.ps1 HOT 1
- Migration from older Remotely Version to the newest one failed how to migrate DB and get login working again HOT 1
- ListView for the Home Screen HOT 4
- Docker: ResetPassword link uses wrong hostname HOT 1
- can't connect if i rename the exe HOT 2
- What's with Docker Tags? HOT 3
- Linux client installation issues. HOT 1
- Cannot Start Remote Control Session -- Manjaro KDE HOT 2
- Remotely wont run in aarch64?
- Feature Request: Software Install Component using winget or choco HOT 4
- Numlock is not writing numbers
- New install of remotely via Docker is no-go HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remotely.