sharing 443 with apache + autobahn?

#1

I know this topic has come up a few times. Some of the guys here at work are starting to complain to me that I have to have 2 ports open (443 and 9000) to do the web socket stuff. I wonder if anybody here has a single port version of autobahn working (using apache)? I’m not really sure how to start? I’d like to run apache on 443, probably with wsgi, and i’d like to promote an autobahn connection on 443 to a web socket server.

-g

0 Likes

#2

You cannot have two processes with the same port open, but because HTTP has an infinite address space you can make paths become other servers, effectively. Look into http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#ProxyPass

I have used this to run icecast and transmission at the same t&'e behind nginx successfully in the past.

-Nick

···

On 27 Jun 2014, at 18:06, Greg Fausak lgfa...@gmail.com wrote:

I know this topic has come up a few times. Some of the guys here at work are starting to complain to me that I have to have 2 ports open (443 and 9000) to do the web socket stuff. I wonder if anybody here has a single port version of autobahn working (using apache)? I’m not really sure how to start? I’d like to run apache on 443, probably with wsgi, and i’d like to promote an autobahn connection on 443 to a web socket server.

0 Likes

#3

Hi Greg,

I know this topic has come up a few times. Some of the guys here at
work are starting to complain to me that I have to have 2 ports open
(443 and 9000) to do the web socket stuff. I wonder if anybody here has
a single port version of autobahn working (using apache)? I'm not
really sure how to start? I'd like to run apache on 443, probably with
wsgi, and i'd like to promote an autobahn connection on 443 to a web
socket server.

You can combine Twisted Web WSGI and Autobahn on 1 port (443) in 1 process. And you wouldn't need Apache or anything else.

If you insist on putting something in front of Autobahn, please consider Nginx instead of Apache.

If you insist on Apache, I think the following should work:

http://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html

/Tobias

···

Am 28.06.2014 00:06, schrieb Greg Fausak:

-g

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com
<mailto:autobahnws+...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

0 Likes

#4

Thanks for the information!

Looking at nginx I ended up with haproxy, does the job perfectly!

-g

···

On Saturday, June 28, 2014 4:57:59 AM UTC-5, Tobias Oberstein wrote:

Hi Greg,

Am 28.06.2014 00:06, schrieb Greg Fausak:

I know this topic has come up a few times. Some of the guys here at

work are starting to complain to me that I have to have 2 ports open

(443 and 9000) to do the web socket stuff. I wonder if anybody here has

a single port version of autobahn working (using apache)? I’m not

really sure how to start? I’d like to run apache on 443, probably with

wsgi, and i’d like to promote an autobahn connection on 443 to a web

socket server.

You can combine Twisted Web WSGI and Autobahn on 1 port (443) in 1
process. And you wouldn’t need Apache or anything else.

If you insist on putting something in front of Autobahn, please consider
Nginx instead of Apache.

If you insist on Apache, I think the following should work:

http://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html

/Tobias

-g

You received this message because you are subscribed to the Google

Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to autobahnws+...@googlegroups.com

mailto:autobahnws+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

0 Likes

#5

Hi Greg,

Thanks for the information!

Looking at nginx I ended up with haproxy, does the job perfectly!

Ah yeah, HAProxy is also a fine frontend.

As others seems to look for running something in front of Crossbar/Autobahn also, would you mind sharing how you did it?

It would make a good Wiki page in this section:

https://github.com/crossbario/crossbar/wiki#going-to-production

Anyway: good to hear you got it working!

Cheers,
/Tobias

···

Am 02.07.2014 02:00, schrieb Greg Fausak:

-g

On Saturday, June 28, 2014 4:57:59 AM UTC-5, Tobias Oberstein wrote:

    Hi Greg,

    Am 28.06.2014 00:06, schrieb Greg Fausak:
     > I know this topic has come up a few times. Some of the guys here at
     > work are starting to complain to me that I have to have 2 ports open
     > (443 and 9000) to do the web socket stuff. I wonder if anybody
    here has
     > a single port version of autobahn working (using apache)? I'm not
     > really sure how to start? I'd like to run apache on 443,
    probably with
     > wsgi, and i'd like to promote an autobahn connection on 443 to a web
     > socket server.

    You can combine Twisted Web WSGI and Autobahn on 1 port (443) in 1
    process. And you wouldn't need Apache or anything else.

    If you insist on putting something in front of Autobahn, please
    consider
    Nginx instead of Apache.

    If you insist on Apache, I think the following should work:

    http://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html
    <http://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html>

    /Tobias

     >
     > -g
     >
     > --
     > You received this message because you are subscribed to the Google
     > Groups "Autobahn" group.
     > To unsubscribe from this group and stop receiving emails from it,
    send
     > an email to autobah...@googlegroups.com <javascript:>
     > <mailto:autobahnws+...@googlegroups.com <javascript:>>.
     > For more options, visit https://groups.google.com/d/optout
    <https://groups.google.com/d/optout>.

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com
<mailto:autobahnws+...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

0 Likes

#6

sure, i can update that in the next couple of days. should i create a new topic, or use one of the ones there?

-g

···

On Wednesday, July 2, 2014 5:53:52 AM UTC-5, Tobias Oberstein wrote:

Hi Greg,

Am 02.07.2014 02:00, schrieb Greg Fausak:

Thanks for the information!

Looking at nginx I ended up with haproxy, does the job perfectly!

Ah yeah, HAProxy is also a fine frontend.

As others seems to look for running something in front of
Crossbar/Autobahn also, would you mind sharing how you did it?

It would make a good Wiki page in this section:

https://github.com/crossbario/crossbar/wiki#going-to-production

Anyway: good to hear you got it working!

Cheers,

/Tobias

-g

On Saturday, June 28, 2014 4:57:59 AM UTC-5, Tobias Oberstein wrote:

Hi Greg,
Am 28.06.2014 00:06, schrieb Greg Fausak:
 > I know this topic has come up a few times.  Some of the guys here at
 > work are starting to complain to me that I have to have 2 ports open
 > (443 and 9000) to do the web socket stuff.  I wonder if anybody
here has
 > a single port version of autobahn working (using apache)?  I'm not
 > really sure how to start?  I'd like to run apache on 443,
probably with
 > wsgi, and i'd like to promote an autobahn connection on 443 to a web
 > socket server.
You can combine Twisted Web WSGI and Autobahn on 1 port (443) in 1
process. And you wouldn't need Apache or anything else.
If you insist on putting something in front of Autobahn, please
consider
Nginx instead of Apache.
If you insist on Apache, I think the following should work:
[http://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html](http://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html)
<[http://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html](http://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html)>
/Tobias
 >
 > -g
 >
 > --
 > You received this message because you are subscribed to the Google
 > Groups "Autobahn" group.
 > To unsubscribe from this group and stop receiving emails from it,
send
 > an email to autobahnws+...@googlegroups.com <javascript:>
 > <mailto:autobahnws+unsub...@googlegroups.com <javascript:>>.
 > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout)
<[https://groups.google.com/d/optout](https://groups.google.com/d/optout)>.

You received this message because you are subscribed to the Google

Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to autobahnws+...@googlegroups.com

mailto:autobahnws+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

0 Likes

#7

pls add content here: https://github.com/crossbario/crossbar/wiki/Reverse-Proxies

/Tobias

···

Am 02.07.2014 16:59, schrieb Greg Fausak:

sure, i can update that in the next couple of days. should i create a
new topic, or use one of the ones there?

0 Likes