You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Eibwen <gw...@sedonatek.com> on 2010/06/07 21:30:40 UTC

Server configuration port - Virtual hosts

I need to have a website running in IIS on port 80, and message queue on port
80.  Is that possible?
They would have different DNS addresses, and can have multiple IPs for the
machine.
Or at least both of them accessible from a port 80 request.  Is there some
way to have a virtual host between IIS and ActiveMQ or anything?

The main help i need is simply which direction should i explore for this, i
should be able to figure out the specific configuration myself after i know
what direction should work.

>From my basic knowledge in the area I would think it is not possible, but
i'm being told to see if i can find any solution.  My thought would be it
should be possible to run the message queue on say port 81, and have IIS
forward any traffic that goes to its DNS to that port, but i really have no
clue how to configure IIS to do that either.  

This is on a Windows Server 2007 box.

The reason for this is that the producer for the message queue is behind a
strict firewall that we can't get anything but http on port 80 to work, and
we seem to not have enough servers to dedicate one to a message queue on
port 80.

Thanks for any help you can give me.
-- 
View this message in context: http://old.nabble.com/Server-configuration-port---Virtual-hosts-tp28809682p28809682.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Server configuration port - Virtual hosts

Posted by Eibwen <gw...@sedonatek.com>.
I found the answer, it is possible if you have multiple IPs on the machine.

Once you have the second IP setup for the machine, follow this:
http://support.microsoft.com/kb/954874 [title: IIS binds to all IP addresses
on a server when you install IIS 7.0 on Windows Server 2008] (there are
similar guides for previous IIS versions as well)

Then you can specify the ip and port you want to bind to by changing
<transportConnector name="httpConn" uri="http://0.0.0.0:80"/>
to
<transportConnector name="httpConn" uri="http://xxx.xxx.x.x:80"/>  (Where
xxx.xxx.x.x is the IP that was added to the machine)

Then ActiveMQ should be able to start up without any exceptions.


I did not pursue having IIS forward it because I didn't see any setting
similar to what i wanted, but I still think one could at least write a small
webapp that would forward the requests for you.
-- 
View this message in context: http://old.nabble.com/Server-configuration-port---Virtual-hosts-tp28809682p28882555.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.