aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Setting amule-web to listen on port 80  (Read 3552 times)

blazemonkey

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Setting amule-web to listen on port 80
« on: June 14, 2012, 06:06:54 AM »

Hi,

I've got amule 2.3.1 installed in a dedicated debian squeeze install and I'd like to set amules webserver to listen on port 80.

I've obviously tried to set the webserver port to 80 in amule.conf, which unsurprisingly doesn't work on a linux system. Oanother machine running deluge-web I was able to overcome this by entering the command "setcap 'cap_net_bind_service=+ep' /usr/bin/python2.7", I'm hoping I can do something similar for amule-web.

Thanks  :D
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Setting amule-web to listen on port 80
« Reply #1 on: June 14, 2012, 08:17:44 PM »

You have to change [WebServer]Port in remote.conf.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

blazemonkey

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Setting amule-web to listen on port 80
« Reply #2 on: June 23, 2012, 04:18:30 AM »

No dice there either, I should have explained myself better.

I've actually configured the webserver to run from within the amuled daemon and I've already had it set to accept connections on port 10002 in amule.conf. If I add the [WebServer]Port option to remote.conf, and start amuleweb, I will actually have a second webserver running on a separate port, in my test case, port 10003.

But, I cannot connect to either amued or amuleweb when the webserver port is set to 80.
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Setting amule-web to listen on port 80
« Reply #3 on: June 23, 2012, 03:55:15 PM »

The port numbers below 1024 are called privileged ports (or sometimes: reserved ports).  Only privileged processes (i.e., those having the CAP_NET_BIND_SERVICE capability) may bind(2) to these sockets.
That usually means you'd have to run aMuleWeb with root privileges (which is not recommended at all) to allow binding to port 80.
Logged
concordia cum veritate