Fedora 33 & Apache
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