Domain redirection using apache not working properly

Hi,

I'm running repetier-server 0.80.1 on my raspberry. Everything works well. But now I want to access the interface from the outside. I have created a domain and as I have several domain on the same server I use apache making the right redirection.

I have created a new vhost like this:

<VirtualHost *:80>
ServerName 3dprint-xxxx.ml

RewriteEngine on
RewriteCond %{HTTP:CONNECTION} Upgrade [NC]
RewriteCond %{HTTP:UPGRADE} websocket [NC]
RewriteRule /(.*) ws://localhost:3344/%1 [P,L]

ProxyRequests off
<Location />
    ProxyPass http://127.0.0.1:3344/
    ProxyPassReverse /
</Location>

</VirtualHost>
 
It looks like something is not well set as when I load the interface I only have the top frame, without the possibility to login.

result can be seen here : http://3dprint-mathlab.ml
Any idea?

Thanks 
Math

Comments

  • You need at least Apache 2.4 to be able to proxy websockets. My bet is on a wrong setup for the websocket proxy. Apache has a special module for this, but please do not ask how to setup. We have an example for nginx where oyu might take a look at on our homepage in docs section. That shows what parts to proxy how. Just adapt it to apache.
Sign In or Register to comment.