Hello, i had octopi installed on my raspberry pi 3, it works perfectly with my ender 3 locally.
My problems started when using my raspberry pi 4 i used apache2 reverse proxy to connect to host/ octopi. I used the guide in this site, I tried modifying myself, but anytime i try, i'm not able to login. I tried different browser, clearing cache.
<Location /octopi>
ProxyPass http://192.168.1.43/
ProxyPassReverse http://192.168.1.43/
ProxyPassReverseCookiePath http:192.168.1.43/ /octopi
RequestHeader set X-SCRIPT-NAME /octopi
RequestHeader set X-SCHEME https
Order allow,deny
Allow from all
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} =websocket [NC]
RewriteRule /octopi/(.*) ws://192.168.1.43/$1 [P,L]
RewriteCond %{HTTP:UPGRADE} !=websocket [NC]
RewriteRule /octopi/(.*) http://192.168.1.43/$1 [P,L]
</Location>
As you can see, the pi3 is 192.168.1.43 and the pi4 is exposed on the internet.
You know what can i do?
EDIT:the problem does not appear if i use /octoprint/ instead of /octopi/
Fedora 33 & Apache here and the same thing with me ....
tried to use
<Location /octopi> .... and it did not work
switched to
<Location /octoprint> .... and everything is working except my webcam stream.
funny how the snapshot works but the stream does not ...
i redirect all traffic coming in on port 80 with this conf that i think may be the issue ???
<VirtualHost *:80>
ServerName myhost.webhop.net
RewriteEngine on
RewriteCond %{SERVER_NAME} =myhost.webhop.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
<VirtualHost *:443>
ServerName myhost.webhop.net
<Location /octoprint/>
RequestHeader set X-SCRIPT-NAME /octoprint/
RequestHeader set X-SCHEME https
ProxyPassReverse http://192.168.1.250
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} =websocket [NC]
RewriteRule /octoprint/(.) ws://192.168.1.250/$1 [P,L]
RewriteCond %{HTTP:UPGRADE} !=websocket [NC]
RewriteRule /octoprint/(.) http://192.168.1.250/$1 [P,L]
SSLCertificateFile /etc/letsencrypt/live/myhost.webhop.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/myhost.webhop.net/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf