gordonb3 wrote: 
> Oh.. one note:
> 
> Do not attempt any reverse proxying, i.e. do not move LMS into a
> subfolder of the proxying web server. It does not work and all that
> you'll see is a green screen.
> 
> e.g. in-house I use the following setup for apache:
> > 
Code:
--------------------
  >   > 
  > <VirtualHost 192.168.10.1:80>
  > ServerAdmin webmaster@localhost
  > ServerName squeezebox.localdomain
  > ServerAlias squeezebox
  > 
  > ErrorLog /var/log/apache2/logitechmediaserver-error.log
  > CustomLog /var/log/apache2/logitechmediaserver-access.log combined
  > ServerSignature On
  > 
  > DocumentRoot /home/web/common
  > ErrorDocument 404 /errors/redir9000.php
  > 
  > # allow local network only
  > <Directory "/home/web/common">
  > AllowOverride None
  > <RequireAll>
  > Require not ip 192.168.10.1
  > Require ip 192.168.10.0/24
  > </RequireAll>
  > </Directory>
  > 
  > RewriteEngine on
  > RewriteCond %{REMOTE_ADDR} !^192\.168\.10\.1$
  > RewriteCond %{REMOTE_ADDR} ^192\.168\.10\.
  > RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
  > RewriteRule ^/(.*)$ http://%{HTTP_HOST}:9000/$1 [NE,P,L]
  > 
  > </VirtualHost>
  > 
--------------------
> > 
> This is targeted to getting rid of the `:9000` in the uri and so does
> not include any ssl (https) rules
> 
> For Nginx you'd have to include something like this
> > 
Code:
--------------------
  >   >         location @proxy {
  > proxy_set_header X-Forwarded-For $remote_addr;
  > proxy_set_header Connection "Keep-Alive";
  > proxy_set_header Proxy-Connection "Keep-Alive";
  > proxy_http_version 1.1;
  > proxy_set_header Host $host;
  > proxy_pass_header Server;
  > proxy_pass http://192.168.10.1:9000;
  > }
  > 
--------------------
> > 

ItÂ’s only the web UI that has issues when you do this - the jsonrpc
interface still works just fine despite that green screen of death.




------------------------------------------------------------------------
philchillbill's Profile: http://forums.slimdevices.com/member.php?userid=68920
View this thread: http://forums.slimdevices.com/showthread.php?t=114090

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to