I’m currently in the process of setting up a media server for my dorm floor.
I installed Subsonic, which runs on port 4040 of my server at [domain].
Right now to access the media on subsonic, you have to go to [domain]:4040
Is there a way to make an address on my server can be used to access this port, for example: [domain]/media is equivalent to [domain]:4040
My server is running Ubuntu Server 11.10, with Apache.
Thanks.
Sure. Apache’s
mod_proxywill do exactly what you want — take a request coming in on one port and forward it to another. Something as simple as the following might do the trick:You can read more in the mod_proxy documentation.