How can I make Logitech Media Server available without specifying a port number?

ndemarco

Logitech Media Server is a streaming audio server formerly by Slim Devices known as SlimServer. It streams audio to Squeezebox devices (by Logitech), and third party devices, like Raspberry Pi-based PiCorePlayer.

When installed with default options, the Logitech Media Server is available on port 9000. The default URL is http://myserver:9000.

I would like to rewrite the URL as http://myserver/music.

From peers, I understand a reverse proxy server is required. I've attempted to use nginx for this without success. I am quite sure Apache could work for this, but have not been successful with either solution. I am eager to learn!

This article, on the SlimDevices wiki, explains the process using Apache. I followed the article, but have not been successful.

The article states to install the package libapache2-mod-proxy-html, which is not found. I understand from this article, it is no longer required. Following the instructions, it seems libapache2-mod-proxy-html is not the cause of my problem. I'm the one asking for help, so I defer to others.

The article's configuration file is:

# Slimserver Reverse Proxy Configuration
# Prepared by BV January 2008
#
# Make sure that the server cannot be abused
#
ProxyRequests Off

# The Proxy section below allows internet users
# to access the internal server

ProxyPass /slimserver/ http://localhost:9000/
ProxyHTMLURLMap http://localhost:9000 /slimserver
<Location /slimserver/>
    Order allow,deny
    Allow from all
    ProxyPassReverse / 
    SetOutputFilter proxy-html 
    ProxyHTMLURLMap / /slimserver/ 
    ProxyHTMLURLMap /slimserver /slimserver 
    RequestHeader unset Accept-Encoding
</Location>

When I implement the article's solution and attempt to access the Logitech Media Server on http://myserver/slimserver or http://myserver/slimserver, I get the proper page background, but the main content only says Loading Logitech Media Server.... Loading Logitech Media Server... screen image The URL http://myserver:9000 works. I can interact with the logitech media server normally.

I would prefer to learn the way to do this in nginx, as that's what my coworkers use today and are most familiar with. If I am shown how to do this in Apache2, I could attempt to duplicate the functionality in nginx myself as a learning experience. Once shown the right way, I will go into the Apache or nginx docs and research the details of the solution. Rewriting the URL as described above is something I've wanted to do for years [insert embarrassed face emoji here] but have not been successful.

J. Reeves

You can use iptables to do map requests to port 80 back to 9000:

sudo iptables -I PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-port 9000

This will allow you to request http://myserver/ without the port number. In order to make this persistent across reboots, you'll need to install iptables-persistent

sudo apt-get install iptables-persistent

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I make this overlay responsive without using a media query?

How can I make an ubuntu media server with Samba shares and Deluge?

How to install Logitech Media Server (Squeezebox Server)?

how can check if server and port is available in nodejs ?

how can I change django application server port number in spyne

Discovering Kubernetes Pod without specifying port number

Can I use a random generator without specifying a number distribution?

Can I make a scrollview on xcode 12 without specifying content height

Can I execute presto CLI without specifying --server or --catalog

How to make a div occupy all available remaining horizontal space without specifying its width?

How can I make a div be responsive within another responsive div without media queries?

How can I convert a string to a dataframe, specifying the number of columns?

How can i use nested lists without specifying the height?

How can I get a subcollection on Firebase without specifying it?

How do I get nodejs to run without a port number on a Apache server

Can I bypass number-limit while specifying the port for socket library in Python?

How can I ask from Ant Media Server the number of current viewers

How can i get data at the angular controller using factory from web api without using port number?

OSX Mavericks: How can I make a webserver launch at boot and listen to port 80 without running the webserver as root?

How can I make free/busy information available across Calendar server, Google apps and Exchange?

How can I make my tftp server visible/available on my local network?

send mail using MailKit without specifying port number

How can i make this line of code cover every number in the 10 times table without coding every number

How can I point a domain to a server with static residential IP and port number?

How can I connect to the "In-Sight OPC Server" through node.js without knowing the Port?

How can I make the function keys the default on a Logitech K760 Bluetooh keyboard?

can I run socketio swift without a dedicated port on server

How can I make media keys work with i3?

Can I use awk to perform some number or string operations, without specifying a file as input?