jez500 / chorus

A Web UI for XBMC, focused on user experience and music. Get the latest version here: https://github.com/xbmc/chorus2
357 stars 54 forks source link

Proper way to use proxypass #111

Open lukasmrtvy opened 9 years ago

lukasmrtvy commented 9 years ago

Hi, i need a little help. I dont know, if is it a bug I am able to get basic web interface with these settings: AllowEncodedSlashes On ProxyPass /kodi/ http://localhost:8080/ ProxyPassReverse /kodi/ http://localhost:8080/

But everything after https://10.0.0.252/kodi/ doesnt work https://10.0.0.252/kodi/#mymovies https://10.0.0.252/kodi/#music/recently-played

It shows only Loading text. Deafault webinterface works with these settings. Thanks

lukasmrtvy commented 9 years ago

I figured it out:

AllowEncodedSlashes On RewriteEngine On RewriteCond %{HTTP_REFERER} ^https?://[^/]+/xbmc RewriteCond %{REQUEST_URI} !^/xbmc RewriteCond %{THEREQUEST} ^GET RewriteRule ^/(.) /xbmc/$1 [QSA,R] RewriteCond %{HTTP_REFERER} ^https?://[^/]+/xbmc RewriteCond %{REQUEST_URI} !^/xbmc RewriteCond %{THEREQUEST} ^POST RewriteRule ^/(.) /xbmc/$1 [QSA,PT]

ProxyPass /xbmc/ http://localhost:8080/ ProxyPassReverse /xbmc/ http://localhost:8080/