Kodi Community Forum
MediaFrontPage - Web interface with widget type architecture to control multiple apps - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: MediaFrontPage - Web interface with widget type architecture to control multiple apps (/showthread.php?tid=83304)



- LiLChris - 2011-06-22

jaaahaaa Wrote:this seems like a silly question but how do I change the layout? Nothing happends when I make changes in default-layout.php or layout.php. Even tried deleting them, nothing happends.

Rename default-layout.php to layout.php Smile


- steve1977 - 2011-06-22

DejaVu Wrote:@steve1977, I dont use reverse proxy, but I am able to recreate your setup. I'll see if I can create the problem your having and then find a way to solve it.

Did you have a chance to look into this? I am still struggling to get the reverse-proxy work properly.


- jaaahaaa - 2011-06-22

LiLChris Wrote:Rename default-layout.php to layout.php Smile

Nothing changes if I do changes to layout.php (with default-layout.php removed)


- gugahoi - 2011-06-22

jaaahaaa Wrote:Nothing changes if I do changes to layout.php (with default-layout.php removed)

That's not possible. How does your MFP look like? It's supposed to use the info in layout.php to know which widgets to load otherwise it probably would not work. Maybe you should try and re-download?

Otherwise post an image of your MFP and the contents of your modified layout.php so we can have a better idea of what's happening.


- jaaahaaa - 2011-06-22

gugahoi Wrote:That's not possible. How does your MFP look like? It's supposed to use the info in layout.php to know which widgets to load otherwise it probably would not work. Maybe you should try and re-download?

Otherwise post an image of your MFP and the contents of your modified layout.php so we can have a better idea of what's happening.

I solved it, well it's kinda emerrasing but might make someone feel smart compared to me... Apperently I had two www folders one installed in c:\Pogram Files\wamp and one c:\Program files\wamp

Sorry for the hassle and thx for trying to help me!


- niietzshe - 2011-06-22

Hey everyone,
If I connect from outside my network directly to sickbeard, couchpotato and sabnzbd, it'll load in a second flat. If I try to connect directly to mediafrontpage (apache on xbmclive) it just won't load, even though it will inside of the network...

Baffling me a bit, but I can't get ssh access from work back to my home machine so can't test it easily.
Thanks for any help
Niietzshe


- DejaVu - 2011-06-22

I think reverse Proxy needs a better write up for all the optional Apache versions. I too still cannot get this to work and IS very frustrating.
Once I do, I'll add it to the original Readme.md file.

I'm almost certain everythings right - but it just will not load up!

This is how I've set it up.

XBMCLive Apache Server with Sab/CP/Sick/MFP all installed to it and works perfectly with http://xbmclive as the address and PORTS set.

Here is the z-mfp.conf I created in /etc/apache2/sites-enabled
Code:
<VirtualHost *>
    SSLProxyEngine on
    ProxyRequests On
    ProxyPreserveHost Off
    ErrorLog logs/mfp_error_log
    TransferLog logs/mfp_access_log
    <Location /sabnzbd>
        ProxyPass http://xbmclive:8080/sabnzbd/
        ProxyPassReverse http://xbmclive:8080/sabnzbd/
    </Location>
    <Location /xbmc>
        ProxyPass http://xbmclive:8082
        ProxyPassReverse http://xbmclive:8082
    </Location>
    <Location /tvshows>
        ProxyPass http://xbmclive:8081
        ProxyPassReverse http://xbmclive:8081
    </Location>
    <Location /movies>
        ProxyPass http://xbmclive:5000
        ProxyPassReverse http://xbmclive:5000
    </Location>
</VirtualHost>
CP and Sickbeard's URLBases are set correctly.

My MFP Config setup.
Code:
$GLOBAL_MACHINE      = true;
     $GLOBAL_USER_PASS    = false;
     $GLOBAL_IP           = 'xbmclive';
     $GLOBAL_USER         = '';
     $GLOBAL_PASS         = '';
    
     $REVERSE_PROXY       = true;
     $XBMC_WEBROOT        = '/xbmc';
     $SICKBEARD_WEBROOT   = '/tvshows';
     $COUCHPOTATO_WEBROOT = '/movies';
     $SABNZBD_WEBROOT     = '/sabnzbd';
     $UTORRENT_WEBROOT    = '';
     $JDOWNLOADER_WEBROOT = '';
     $TRANSMISSION_WEBROOT= '';


/* XBMC Section*/

     $XBMC_IP             = '';
     $XBMC_PORT           = '8082';
     $XBMC_USERNAME       = '';
     $XBMC_PASS           = '';

/* SickBeard Section*/

     $SICKBEARD_IP        = '';
     $SICKBEARD_PORT      = '8081';
     $SICKBEARD_USERNAME  = '';
     $SICKBEARD_PASS      = '';

/* SABNZBD Section*/

     $SABNZBD_IP          = '';
     $SABNZBD_PORT        = '8080';
     $SABNZBD_USERNAME    = '';
     $SABNZBD_PASS        = '';
     $SABNZBD_API         = 'MY SABNZBD API';

/* CouchPotato Section*/

     $COUCHPOTATO_IP      = '';
     $COUCHPOTATO_PORT    = '5000';
     $COUCHPOTATO_USERNAME= '';
     $COUCHPOTATO_PASS    = '';
and
Code:
$navlink;
          $navlink["XBMC"]           = '/xbmc';
          $navlink["Sickbeard"]      = '/tvshows';
          $navlink["Couch Potato"]   = '/movies';
          $navlink["Sabnzbd"]        = '/sabnzbd';
So far so good?

I then copied all the proxy files from 'mods-available' folder to 'mods-enabled' folder, which are proxy.load, proxy_ajp.load, proxy_balance.load, proxy_ftp.load and proxy_http.load.

As well as proxy.conf -
Code:
<IfModule mod_proxy.c>
        #turning ProxyRequests on and allowing proxying from all may allow
        #spammers to use your proxy to send email.

        ProxyRequests Off

        <Proxy *>
                AddDefaultCharset off
                Order deny,allow
                Deny from all
                #Allow from .example.com
        </Proxy>

        # Enable/disable the handling of HTTP/1.1 "Via:" headers.
        # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
        # Set to one of: Off | On | Full | Block

        ProxyVia On
</IfModule>
When I restart Apache to enable the z-mfp.conf file I get this -
Quote:xbmc@XBMCLive:~$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2
[Wed Jun 22 20:40:28 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
[Wed Jun 22 20:40:28 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
[fail]

Please, for the love of god, help me get this flaming thing working before I burst a blood vessel! Eek


- gugahoi - 2011-06-23

DejaVu Wrote:I think reverse Proxy needs a better write up for all the optional Apache versions. I too still cannot get this to work and IS very frustrating.
Once I do, I'll add it to the original Readme.md file.

I'm almost certain everythings right - but it just will not load up!

This is how I've set it up.

XBMCLive Apache Server with Sab/CP/Sick/MFP all installed to it and works perfectly with http://xbmclive as the address and PORTS set.

Here is the z-mfp.conf I created in /etc/apache2/sites-enabled
Code:
<VirtualHost *>
    SSLProxyEngine on
    ProxyRequests On
    ProxyPreserveHost Off
    ErrorLog logs/mfp_error_log
    TransferLog logs/mfp_access_log
    <Location /sabnzbd>
        ProxyPass http://xbmclive:8080/sabnzbd/
        ProxyPassReverse http://xbmclive:8080/sabnzbd/
    </Location>
    <Location /xbmc>
        ProxyPass http://xbmclive:8082
        ProxyPassReverse http://xbmclive:8082
    </Location>
    <Location /tvshows>
        ProxyPass http://xbmclive:8081
        ProxyPassReverse http://xbmclive:8081
    </Location>
    <Location /movies>
        ProxyPass http://xbmclive:5000
        ProxyPassReverse http://xbmclive:5000
    </Location>
</VirtualHost>
CP and Sickbeard's URLBases are set correctly.

My MFP Config setup.
Code:
$GLOBAL_MACHINE      = true;
     $GLOBAL_USER_PASS    = false;
     $GLOBAL_IP           = 'xbmclive';
     $GLOBAL_USER         = '';
     $GLOBAL_PASS         = '';
    
     $REVERSE_PROXY       = true;
     $XBMC_WEBROOT        = '/xbmc';
     $SICKBEARD_WEBROOT   = '/tvshows';
     $COUCHPOTATO_WEBROOT = '/movies';
     $SABNZBD_WEBROOT     = '/sabnzbd';
     $UTORRENT_WEBROOT    = '';
     $JDOWNLOADER_WEBROOT = '';
     $TRANSMISSION_WEBROOT= '';


/* XBMC Section*/

     $XBMC_IP             = '';
     $XBMC_PORT           = '8082';
     $XBMC_USERNAME       = '';
     $XBMC_PASS           = '';

/* SickBeard Section*/

     $SICKBEARD_IP        = '';
     $SICKBEARD_PORT      = '8081';
     $SICKBEARD_USERNAME  = '';
     $SICKBEARD_PASS      = '';

/* SABNZBD Section*/

     $SABNZBD_IP          = '';
     $SABNZBD_PORT        = '8080';
     $SABNZBD_USERNAME    = '';
     $SABNZBD_PASS        = '';
     $SABNZBD_API         = 'MY SABNZBD API';

/* CouchPotato Section*/

     $COUCHPOTATO_IP      = '';
     $COUCHPOTATO_PORT    = '5000';
     $COUCHPOTATO_USERNAME= '';
     $COUCHPOTATO_PASS    = '';
and
Code:
$navlink;
          $navlink["XBMC"]           = '/xbmc';
          $navlink["Sickbeard"]      = '/tvshows';
          $navlink["Couch Potato"]   = '/movies';
          $navlink["Sabnzbd"]        = '/sabnzbd';
So far so good?

I then copied all the proxy files from 'mods-available' folder to 'mods-enabled' folder, which are proxy.load, proxy_ajp.load, proxy_balance.load, proxy_ftp.load and proxy_http.load.

As well as proxy.conf -
Code:
<IfModule mod_proxy.c>
        #turning ProxyRequests on and allowing proxying from all may allow
        #spammers to use your proxy to send email.

        ProxyRequests Off

        <Proxy *>
                AddDefaultCharset off
                Order deny,allow
                Deny from all
                #Allow from .example.com
        </Proxy>

        # Enable/disable the handling of HTTP/1.1 "Via:" headers.
        # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
        # Set to one of: Off | On | Full | Block

        ProxyVia On
</IfModule>
When I restart Apache to enable the z-mfp.conf file I get this -


Please, for the love of god, help me get this flaming thing working before I burst a blood vessel! Eek
Let's not turn this into a conversation about reverse proxies again. Head over to lighthouse and let's do the conversation there. I already started documenting my experience setting reverse proxies on Ubuntu 10.10 there so just post yours in the thread I started and we can possibly help each other out! I will post the solutions I find there.

http://mediafrontpage.lighthouseapp.com/projects/76089/messages/47650-reverse-proxy-for-mfp


- DPickles - 2011-06-23

hmm.... I just updated to the most recent version and can't get past the sever check page. Anyone else having this issue? It just keeps taking me back to that page.


- gugahoi - 2011-06-23

DPickles Wrote:hmm.... I just updated to the most recent version and can't get past the sever check page. Anyone else having this issue? It just keeps taking me back to that page.

I just downloaded from git and it works fine here. You probably have to set permission for MFP's folder. It probably fails when deleting the file that makes the redirection because of permissions.


@steve

I managed to set reverse proxies on my machine and I now see what you mean. I'm working to get the config file working. Transmission and SABNZBD widgets are already working for me. XBMC widgets are not and I suspect is because of the way it is being handled when accessed via a ReverseProxy. Will have to look into it a bit more to make sure. The coming episodes widget does not work for some weird reason. I'll try and fix all those things the next few days if possible.

@sleepy

Do all your programs widgets work when accessing through reverse proxies?


- DPickles - 2011-06-23

yep, that seemed to fix it. thanks!


- steve1977 - 2011-06-23

gugahoi Wrote:@steve

I managed to set reverse proxies on my machine and I now see what you mean. I'm working to get the config file working. Transmission and SABNZBD widgets are already working for me. XBMC widgets are not and I suspect is because of the way it is being handled when accessed via a ReverseProxy. Will have to look into it a bit more to make sure. The coming episodes widget does not work for some weird reason. I'll try and fix all those things the next few days if possible.

This would be great, thanks a ton!!! Just one additional thought - this may not be related to MFP, but a broader XBMC issue. The XBMC web interface doesn't work over reverse proxy for me either (and don't think there is anything possibly wrong on my end to set this up), so it may be a much broader issue?


- gugahoi - 2011-06-24

steve1977 Wrote:This would be great, thanks a ton!!! Just one additional thought - this may not be related to MFP, but a broader XBMC issue. The XBMC web interface doesn't work over reverse proxy for me either (and don't think there is anything possibly wrong on my end to set this up), so it may be a much broader issue?

Alright Steve, I think I have everything working. Get the latest version from GIT and follow the instructions on the EXTRAS folder to get XBMC working over reverse proxies.


- steve1977 - 2011-06-24

gugahoi Wrote:Alright Steve, I think I have everything working. Get the latest version from GIT and follow the instructions on the EXTRAS folder to get XBMC working over reverse proxies.

Thanks so much. Quite embarassingly for me, I still don't get it to work. I followed your how-to exactly. Just didn't know how to do the following:

* 2. Allow URL rewriting/proxying in your apache file (in my case it was -->
* /etc/apache2/sites-enabled/default)

Any idea where this would be in Win7/Uniserver. Also, is this part of a conf file?

Could this be the reason why nothing is working yet (comingepisodes, XBMC and sabnzbd-related stuff).

Thanks in advance!!!


- Oakey - 2011-06-24

For those of us who haven't been following this thread and are running the standard MFP, any chance of an update on what's going on here and what you're all working on?