Socket IO combined with apache ssl server


nseibert
25/12/2015 9:47 am
HOME ยป Network & Servers

I'm trying to run a NodeJS server on port 8000 along with my Apache server which has a ssl certificate. I'm using virtual hosts and proxypass to link from my apache website through the /node path to my NodeJS server.

The problem I'm having right is that I'm able to load the pages served with the Express plugin but the polling from SocketIO connections seem to fail. I've tried a bunch of things but I just cant seem to get it to work.

If I setup my client to listen to

var socket = io.connect('example.com:8000', {secure:
false});

My console show something along the lines of this:

socket.io-1.3.7.js:2 GET
https://example.com:8000/socket.io/?EIO=3&transport=polling&t=1451044647116-0
net::ERR_CONNECTION_CLOSED

Also, I know how to use SSL with my NodeJS server but I assume isn't going to work since I'm also listening through port 443 with my apache server.

Anyone knows if this is even possible and/or how to set this up?

EDIT: Forgot to mention I'm running on Ubuntu 14.04 x64


Related to : Socket IO combined with apache ssl server
Socket IO combined with apache ssl server
25/12/2015 9:47 am Network & Servers

I'm trying to run a NodeJS server on port 8000 along with my Apache server which has a ssl certificate. I'm using virtual hosts and proxypass to link from my apache website through the /node path to my NodeJS server.

The problem I'm having right is that I'm able to load the pages served with the Express plugin but the polling from SocketIO connections seem to fail. I've tried a bunch of things but I just cant seem to get it to work.

If I setup my client to listen to

var socket = io.connect('example.com:8000', {secure:
false});

My console show something along the lines of this:

socket.io-1.3.7.js:2 GET
https://example.com:8000/socket.io/?EIO=3&transport=polling&t=1451044647116-0
net::ERR_CONNECTION_CLOSED

Also, I know how to use SSL with my NodeJS server but I assume isn't going to work since I'm also listening through port 443 with my apache server.

Anyone knows if this is even possible and/or how to set this up?

EDIT: Forgot to mention I'm running on Ubuntu 14.04 x64


Using socket.io with nodejs on a server with apache as a reverse proxy
Network & Servers

I'm attempting to use Node.js with Socket.IO to faciliate messaging between the browser and client, following the guide.


However, I had to setup Node reverse-proxied behind Apache. So, instead of example.com:8080 for node, I'm using example.com/nodejs/.


This seems to cause Socket.IO to lose sense of itself. Here's my node app


var io = require('socket.io').listen(8080);
// this has to be here, otherwise the client tries to
// send events to example.com/socket.io instead of example.com/nodejs/socket.io
io.set( 'resource', '/nodejs/socket.io' );
io.sockets.on('connection', function (socket
Push notifications using Node.js socket.io on apache web-server
Network & Servers

I am trying to understand how this all push notifications works. I tried to do some test of push technology but so far i failed.


The base assumptions are:
1) use Apache web-server as the main application web-server (mandatory since all our code is using that)
2) Cross-Browser push notification server in node.js Technology (offered socket.io since it is crossed browser).


So far i failed and here is my code (p1.html):


<!doctype html>
<html>
<head>




<meta charset="UTF-8">

Apache Mina Server and client in java.net.Socket
Network & Servers

My application send data to Apache Mina Server which listens with the following configuration..



IoAcceptor acceptor = new NioSocketAcceptor();
acceptor.getFilterChain().addLast( "logger", new LoggingFilter() );
//acceptor.getFilterChain().addLast( "logger1", new TempFilter());
acceptor.getFilterChain().addLast( "codec", new ProtocolCodecFilter( new TextLineCodecFactory( Charset.forName( "UTF-8" ))));
acceptor.setHandler( new TimeServerHandler() );
acceptor.getSessionConfig().setReadBufferSize( 2048 );
acceptor.getSessionConfig().setIdleTime( IdleStatus.BOTH_IDLE


HD Wallpapers
3D
3D Abstract
City
Celebrities
Indian Celebrities
Cars
Travel
Girls
Animals Birds
Movies
Sports
Black White
Nature
Planes
Anime
Food Drink
Dreamy Fantasy
Architecture
Games
Space
Holidays
Flowers
Love
Artistic
Baby
Beach
Bikes Motorcycles
Macro
Computers
Vector
Funny
Army
Textures
Brands
Misc
Music
Other
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .