Web

Added by JonRushton almost 7 years ago

Hey fatal, or anyone else who can help..

I was wondering... I would like to be able to link directly to the mobile media collection from a subdomain.

I have tried with apache to create a vhost that forwards the requests on, which works, until you get to the list of media, then it just says Loading...

I have Metabrowser configured on port 80, ip address shown below.

here is the apache bit:

<VirtualHost *:80>
    ServerName collection.mydomain.co.uk
    RewriteEngine on
    RewriteRule ^/web/(.*)$ http://192.168.0.249/web/$1 [P,L]
    RewriteRule ^/(.*)$ http://192.168.0.249/web/$1 [P,L]
</VirtualHost>

This works with uTorrent (negating the need to use /gui after the url.

Any ideas?

If i just forward apache to the ip, then i use collection.mydomain.co.uk/web it works fine. but i wanted to remove that requirement so its all accessable from the simple subdomain.


Replies (1)

RE: Web - Added by fatal almost 7 years ago

It probably just says loading b/c the relative paths to the api probably changes...what happens with the above script, and you go to, for example: collection.mydomain.co.uk/get.Movies ? It probably won't list the movies since it is expecting there root to be http://192.168.0.249 and not http://192.168.0.249/web/ ....b/c the get.Movies (and other metadata endpoints) are tied to http://192.168.0.249/get.Movies and not http://192.168.0.249/web/get.Movies.

Take Care

(1-1/1)