Mopidy Iris trought Proxy/Redirect Apache


I want to hit https://www.mopidy.listen in the Browser that the iris interface is coming.

I did a Proxy to and is working with SSL but Iris lost all the configurations.
Why? And how i change it that iris hold his configuration?
I can’t connect to MPD or Spotify Extension…
Any ideas?

Best off asking on the Iris github issue page for Iris issues.

The other questions you must provide much more detail as this is so vague I can’t begin to help.

Ok, i will give a try…

Ok Setup:

  • Arch Linux which works
  • Apache2 works with other Domain
  • Mopidy (with Iris & Spotify) works under

Config of Virtualhost of Proxy/Redirect from www.mopidy.listen to

  • Open www.mopidy.listen Open iris URL
  • No configs and No Connection possible to MPD ,local or Spotify

<VirtualHost *:80>
ServerName www.mopidy.listen
#ProxyPreserveHost On

    Redirect "/iris" ""
    # setup the proxy
    #<Proxy *>
      #  Order allow,deny
        #Allow from all
   # </Proxy>
   # ProxyPass /
   # ProxyPassReverse /

<VirtualHost *:443>
ServerName www.mopidy.listen

Redirect “/iris” “
#ProxyPreserveHost On

# setup the proxy
#<Proxy *>
#    Order allow,deny
#    Allow from all
#ProxyPass /

#ProxyPassReverse /

SSLEngine on
SSLCertificateFile "/etc/ssl/certs/www.mopidy.listen.crt"
SSLCertificateKeyFile "/etc/ssl/certs/www.mopidy.listen.key"

So my question are:

  • Are the SSLEngine necesseray
  • What is better redirect ore proxy
  • Why the config is lost of irirs
    -Why i can’t connect to MPD

Thanks for help

Are you somehow trying to connect to MPD (TCP port 6600) via a HTTP(S) proxy configured at www.mopidy.listen? That will not work. Not sure I understand what you are trying to do here.

I found this:

I did exactly like this only changed path and port from 6680 to 8080, but still not working.
I will only can hit https://www.mopidy.listen in Firefox and then should appear

Why should this didn’t work?

I said the MPD part won’t work.

The HTTP part should, but if it isn’t I think asking on the Iris issue tracker is best as it’s their documentation. Sorry,cant be more help.

Ok. i did open a Ticker on iris page.

Maybe I can be clearer, to connect to the MPD frontend you would need a more general TCP proxy. A regular HTTP proxy speaks HTTP protocol which is different to the MPD protocol.

iptables -t nat -A PREROUTING -p tcp --dport 6600 -j DNAT --to-destination
iptables -t nat -A POSTROUTING -j MASQUERADE

It’s all I have to do?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.