pulpTunes Community Forums The Web Server for iTunes

Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: Change port number from 15000 to 80 (or below 1024).  (Read 7235 times)

squiddz

  • Knight
  • ***
  • Gender: Male
  • Posts: 18
    • View Profile
    • Everything iTunes
    • Email
Change port number from 15000 to 80 (or below 1024).
« on: March 10, 2009, 04:42:45 PM »

I'm trying to set up the server such that it runs on port 80, so i can bypass most port-blocking servers, such as the one at uni.

When i right click on the orange pulpTunes logo, and click "Advanced Settings", I am forced to enter 1024 or above into the port field.

Why is this limit put in place, and is there a way i might be able to bypass it?

If you cannot remove this restriction (for whatever reason), can you explain simply how to create a "reverse proxy" with apache.. i've installed that software and am at a loss as to what comes next.

I think it'd be useful to be able to do what you've managed to do with your demo), and I read in the old forums that you're using this "reverse proxy with apache" thing.

I am, however, reluctant to start a fully fledged webserver like apache every time i want to use the program.

I look forward to hearing why this limit (1024 - 65535) is in place.

Cheers, Ollie
Logged
Troubleshooting
1] Get the latest version
2] Search before you start a new topic.
3] When posting, please give all the info you can about your setup, and the log entry as the error occurs.

alpeb

  • Administrator
  • Grand Master
  • *****
  • Gender: Male
  • Posts: 444
    • View Profile
    • Email
Re: Change port number from 15000 to 80 (or below 1024).
« Reply #1 on: March 11, 2009, 09:59:28 AM »

Hi Ollie,

On Unix-like systems (which includes Mac OS X), for security reasons only processes started by the superuser can serve on ports 0-1023. But I can see your problem. So I guess I can remove that restriction, adding a little warning saying that if you choose a port below 1024 you'd have to start pulpTunes as superuser...
I'll add a page explaining the proxy settings in the wiki.

Cheers,
Alejandro
Logged

alpeb

  • Administrator
  • Grand Master
  • *****
  • Gender: Male
  • Posts: 444
    • View Profile
    • Email
Re: Change port number from 15000 to 80 (or below 1024).
« Reply #2 on: March 11, 2009, 10:36:12 AM »

Here are the instructions to set the Apache reverse proxy:
http://pulptunes.wiki.sourceforge.net/mod_proxy
Logged

squiddz

  • Knight
  • ***
  • Gender: Male
  • Posts: 18
    • View Profile
    • Everything iTunes
    • Email
Re: Change port number from 15000 to 80 (or below 1024).
« Reply #3 on: March 11, 2009, 12:11:15 PM »

Cheers for the help so far..

If a "superuser" is the same as an administrator, then that definately sounds like the best plan. It seems stupid locking people out of a feature, when most will be tech-savvy enough to take heed of the warning! :)

I've tried simply adding the code from the wiki to the end of my conf file..

<IfModule mod_proxy.c>
ProxyRequests Off
ProxyPass /demo http://localhost:15000
ProxyPassReverse /demo http://localhost:15000
</IfModule>

* note: i corrected the "1500" to a "15000" because i think that's a typo in the wiki? not 100% sure though - tried both..

... and have also uncommented the line...

LoadModule proxy_module modules/mod_proxy.so

...to enable mod_proxy. I have also checked that "proxy_module" comes up in that list, and it does.

Can't seem to get it right though, because it says...

"500 | Internal Server Error - The server encountered an internal error or misconfiguration and was unable to complete your request."

Cheers for any more help you can give me..!
« Last Edit: March 11, 2009, 12:13:52 PM by squiddz »
Logged
Troubleshooting
1] Get the latest version
2] Search before you start a new topic.
3] When posting, please give all the info you can about your setup, and the log entry as the error occurs.

alpeb

  • Administrator
  • Grand Master
  • *****
  • Gender: Male
  • Posts: 444
    • View Profile
    • Email
Re: Change port number from 15000 to 80 (or below 1024).
« Reply #4 on: March 11, 2009, 12:36:05 PM »

Yea, the 1500 was a typo ;)
Take a look at apache's error log, maybe that'll give us more info about the error. Both when apache starts and when the request is tried.

Cheers.
Logged

squiddz

  • Knight
  • ***
  • Gender: Male
  • Posts: 18
    • View Profile
    • Everything iTunes
    • Email
Re: Change port number from 15000 to 80 (or below 1024).
« Reply #5 on: March 13, 2009, 03:43:20 PM »

Yay!

Fixed, thanks:)

I was getting an error saying...

No protocol handler was valid for the URL /demo. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.

but i needed to enable a few more modules, not just mod_proxy, but:

mod_proxy
mod_proxy_http
mod_proxy_balancer

then restarted server and it worked! :)

Thanks dude..
« Last Edit: March 13, 2009, 03:58:04 PM by squiddz »
Logged
Troubleshooting
1] Get the latest version
2] Search before you start a new topic.
3] When posting, please give all the info you can about your setup, and the log entry as the error occurs.

alpeb

  • Administrator
  • Grand Master
  • *****
  • Gender: Male
  • Posts: 444
    • View Profile
    • Email
Re: Change port number from 15000 to 80 (or below 1024).
« Reply #6 on: March 13, 2009, 03:58:00 PM »

Hey,

According to that last error you put in bold, it looks like we need to enable more mod_proxy thingies...
Uncomment line 115 of your config file (LoadModule proxy_http_module modules/mod_proxy_http.so) and restart the web server.
Let me know how it goes.

Cheers
Logged

squiddz

  • Knight
  • ***
  • Gender: Male
  • Posts: 18
    • View Profile
    • Everything iTunes
    • Email
Re: Change port number from 15000 to 80 (or below 1024).
« Reply #7 on: March 13, 2009, 03:58:41 PM »

whoa fast reply. Thanks, just worked that out after a considerable amount of googling. Have updated my post. Thanks :)
Logged
Troubleshooting
1] Get the latest version
2] Search before you start a new topic.
3] When posting, please give all the info you can about your setup, and the log entry as the error occurs.

brdweb

  • Guest
Re: Change port number from 15000 to 80 (or below 1024).
« Reply #8 on: October 07, 2009, 07:59:58 PM »

Could we have the wiki entry put onto the new site? I'm wanting to do this same thing so I can use pulptunes at work!
Logged

alpeb

  • Administrator
  • Grand Master
  • *****
  • Gender: Male
  • Posts: 444
    • View Profile
    • Email
Re: Change port number from 15000 to 80 (or below 1024).
« Reply #9 on: October 07, 2009, 08:21:37 PM »

Could we have the wiki entry put onto the new site? I'm wanting to do this same thing so I can use pulptunes at work!

Unfortunately that info has been lost... but it was more less what is stated above
 http://www.pulptunes.com/community/index.php/topic,13.msg41.html#msg41
namely, adding those directives ProxyRequest, ProxyPass and ProxyReverse to the Apache configuration file. Apache has to be running alongside pulpTunes in the same machine. Are you familiar with installing and configuring Apache, or do you have a particular problem with the reverse proxy setup?
Logged

brdweb

  • Guest
Re: Change port number from 15000 to 80 (or below 1024).
« Reply #10 on: October 12, 2009, 01:01:35 PM »

Got it working now thanks. I just needed to add mod_proxy_http to my config file. However, my Apache install did not have mod_proxy_balancer so I needed to leave that out to get it started.
Logged