Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper way to use proxypass #111

Open
lukasmrtvy opened this issue May 17, 2015 · 1 comment
Open

Proper way to use proxypass #111

lukasmrtvy opened this issue May 17, 2015 · 1 comment

Comments

@lukasmrtvy
Copy link

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
Copy link
Author

I figured it out:

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant