Hi,
I try to use your XBMC Video Server over the internet but I'm stuck...
(It works very well on local network
)
I have xbmc (linux) on the same server as apache.
I have another server (main server) on the network, it also has a web server (running on port 80) and I dont want to touch it (many web site and web application).
So I change the listened port of apache on the xbmc server to 1337 (for example)
Code:
/etc/apache2/ports.conf
NameVirtualHost *:1337
Listen 1337
Code:
/etc/apache2/sites-available/default
<VirtualHost *:1337>
[ . . . ]
# Needed to make certain URLs work
AllowEncodedSlashes On
<Location /xbmc-reverse-proxy>
ProxyPass http://127.0.0.1:8080
ProxyPassReverse http://127.0.0.1:8080
RequestHeader set Authorization "Basic eGJtYzp4Ym1j"
</Location>
</VirtualHost>
With this I can access to apache (and XBMC Video Server) through my.domain.com:1337
I set my backend like this :
Code:
Hostname : my.domain.com
Port : 1337
Username : xbmc
Password : xbmc
Proxy location : /xbmc-reverse-proxy
And this is where I'm stuck..
When i want to browse library I get an error 500, not found (404)
I've modified the host in the reverse proxy to 'localhost' or the lan ip of the xbmc server and I get the same error.
This is the log I get :
Code:
Level error
Category exception.CHttpException.500
Logtime 2013-10-18 10:29:15
Source address xxx.xxx.xx.xx
Message
exception 'CHttpException' with message 'Not Found (404)' in /var/www/xbmc-video-server/src/protected/components/XBMC.php:99
Stack trace:
#0 /var/www/xbmc-video-server/src/protected/components/XBMC.php(68): XBMC->performRequestInternal('VideoLibrary.Ge...', Array, 0)
#1 /var/www/xbmc-video-server/src/protected/models/VideoLibrary.php(42): XBMC->performRequest('VideoLibrary.Ge...', Array)
#2 /var/www/xbmc-video-server/src/protected/controllers/MovieController.php(35): VideoLibrary::getMovies(Array)
#3 /var/www/xbmc-video-server/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(49): MovieController->actionIndex()
#4 /var/www/xbmc-video-server/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(Array)
#5 /var/www/xbmc-video-server/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(133): CController->runAction(Object(CInlineAction))
#6 /var/www/xbmc-video-server/vendor/yiisoft/yii/framework/web/filters/CFilter.php(40): CFilterChain->run()
#7 /var/www/xbmc-video-server/vendor/yiisoft/yii/framework/web/CController.php(1145): CFilter->filter(Object(CFilterChain))
#8 /var/www/xbmc-video-server/vendor/yiisoft/yii/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(Object(CFilterChain))
#9 /var/www/xbmc-video-server/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#10 /var/www/xbmc-video-server/src/protected/components/Controller.php(73): CFilterChain->run()
#11 /var/www/xbmc-video-server/vendor/yiisoft/yii/framework/web/filters/CInlineFilter.php(58): Controller->filterCheckConfiguration(Object(CFilterChain))
#12 /var/www/xbmc-video-server/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#13 /var/www/xbmc-video-server/src/protected/components/Controller.php(56): CFilterChain->run()
#14 /var/www/xbmc-video-server/vendor/yiisoft/yii/framework/web/filters/CInlineFilter.php(58): Controller->filterRequireLogin(Object(CFilterChain))
#15 /var/www/xbmc-video-server/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#16 /var/www/xbmc-video-server/vendor/yiisoft/yii/framework/web/CController.php(291): CFilterChain->run()
#17 /var/www/xbmc-video-server/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#18 /var/www/xbmc-video-server/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): CController->run('index')
#19 /var/www/xbmc-video-server/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController('movie/index')
#20 /var/www/xbmc-video-server/vendor/yiisoft/yii/framework/base/CApplication.php(180): CWebApplication->processRequest()
#21 /var/www/xbmc-video-server/src/index.php(17): CApplication->run()
#22 {main}
REQUEST_URI=/xbmc-video-server/src/movie/index
HTTP_REFERER=http://my.domain.com:1337/xbmc-video-server/src/log
---
Perhaps I misunderstood something
Or is the fact that I use a special port to reach apache ?
ps : I kept the default credentials and reverse proxy for testing, I'll change that later ¨