ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Broker Listening to Port 80 in Linux

Post new topic  Reply to topic
 Broker Listening to Port 80 in Linux « View previous topic :: View next topic » 
Author Message
mickey1691
PostPosted: Tue Jun 04, 2013 8:02 am    Post subject: Broker Listening to Port 80 in Linux Reply with quote

Novice

Joined: 04 Jun 2013
Posts: 19

Hi. We're trying to create a broker in Linux that listens in on port 80. So far, we have created the broker, set the port using mqsichangeproperties, and tried to restart the broker.

However, when we try to netstat all the ports being listened to, port 80 is not listed. We also tried posting a request in an HTTPInput URL in a message flow in the broker, but the browser says that "Localhost was rejected."

Any suggestions to this?

Thanks...
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 04, 2013 8:10 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

exactly what mqsichangeproperties command did you specify?

exactly what have you deployed to the broker?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jun 04, 2013 9:11 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Remember that any port below 1024 requires priviledged setup!
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mickey1691
PostPosted: Tue Jun 04, 2013 2:40 pm    Post subject: Reply with quote

Novice

Joined: 04 Jun 2013
Posts: 19

mqsichangeproperties <BROKER_NAME> -b httplistener -o HTTPCONNECTOR -n port -v 80

Tried starting the broker using root, but it can't connect to the queue manager. We also tried stopping the queue manager and starting it using root, but root doesn't have enough privileges to start the queue manager.
Back to top
View user's profile Send private message
exerk
PostPosted: Tue Jun 04, 2013 11:40 pm    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

mickey1691 wrote:
...We also tried stopping the queue manager and starting it using root, but root doesn't have enough privileges to start the queue manager...

Nor should it, ever!
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jun 05, 2013 4:31 am    Post subject: Re: Broker Listening to Port 80 in Linux Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mickey1691 wrote:
Any suggestions to this?


Why not start the broker listener on a port higher than 1024 (7800 for instance) and use a proxy / Apache / network appliance to redirect the port 80 traffic?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mvic
PostPosted: Wed Jun 05, 2013 2:46 pm    Post subject: Re: Broker Listening to Port 80 in Linux Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

No ideas from me, but just wanted to say, this isn't really "WebSphere MQ Installation/Configuration Support"
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Jun 05, 2013 6:47 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

fjb_saper wrote:
Remember that any port below 1024 requires priviledged setup!

I'm not sure what you mean by privileged ...

There is really nothing magic about port 80, or other port numbers - other than some are categorized as well-known ports, some are registered ports, and some are dynamic or private ports.

For example, you can use port 80 with WMQ channels if you want. Of course, this might conflict with other applications running in the same o/s instance that may want to use port 80 for other purposes.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
exerk
PostPosted: Wed Jun 05, 2013 11:33 pm    Post subject: Re: Broker Listening to Port 80 in Linux Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

mvic wrote:
No ideas from me, but just wanted to say, this isn't really "WebSphere MQ Installation/Configuration Support"

Good point so moving this to the Broker forum...
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Thu Jun 06, 2013 12:02 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

bruce2359 wrote:
I'm not sure what you mean by privileged ...

At least for Unix-like platforms, binding to well-known ports (in the range from 0 to 1023) requires superuser privileges. The userids for qmgr and broker processes typically don't have superuser privileges, which makes it more difficult for those processes to bind directly to well-known ports.
Back to top
View user's profile Send private message
mickey1691
PostPosted: Thu Jun 06, 2013 7:33 pm    Post subject: Re: Broker Listening to Port 80 in Linux Reply with quote

Novice

Joined: 04 Jun 2013
Posts: 19

Vitor wrote:
mickey1691 wrote:
Any suggestions to this?


Why not start the broker listener on a port higher than 1024 (7800 for instance) and use a proxy / Apache / network appliance to redirect the port 80 traffic?


I found you can use authbind that allows programs to bind to the port, but I'm not sure if it can be used on mqsi commands. Anybody else with experience from using authbind with message broker?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Broker Listening to Port 80 in Linux
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.