no not necessary
you may have two instances of node running one running on port 80 doing
just the redirect and the other one running your nodejs application
you can even have same instance of node.js with two servers inside it ...
much regards
On 01/31/2012 01:35 PM, s0urce wrote:
But this is only useful if you run no apache as httpd next to node,
isnt it.
Am 31.01.2012 00:13 schrieb "Faysal Al-Banna" <[email protected]
<mailto:[email protected]>>:
>
> No
> I've got my main page running port 80 which is ideal for any webpage
but inside it i have a meta tag which redirects it to my node.js
application running on port 1863 because port 1863 is not firewalled
>
> thus i get my page opened and use socket.io <http://socket.io> fine
.....
>
> much regards
> Example :
> in my www.myexamplepage.com <http://www.myexamplepage.com> i have
> <html><head><meta http-equiv="refresh"
content="0;url=http://www.myexamplepage.com:1863/"></head><body><h1>Opening
Page ..... </h1></body></html>
>
> This way my node.js application running with its (socket.io
<http://socket.io>+ Express.js+ whatever modules i have inside it ) on
port 1863 and the client has only to open my page then he/she shall be
redirected transparently to my nodejs server application page running
on port 1863 or whatever port i desire to run it on ....
>
> hope the idea is clear now ...
> much regards
>
> On 01/30/2012 10:33 AM, s0urce wrote:
>>
>> Hi, just had perceived your solution. Sound interessting, but i can't
>> follow you. Your node listen on port 80, and your socket.io
<http://socket.io> connects
>> to port 1863?
>>
>> On 27 Jan., 14:11, Faysal Al-Banna <[email protected]
<mailto:[email protected]>> wrote:
>>>
>>> I had the same issue so what i did is that i used msn port :-)
>>> not ideal solution but i had my main process in node.js server accept
>>> the request on port 80 and simple page redirect meta tag in the
response
>>> header response takes it to port 1863 thus successive requests from
>>> clients run on port 1863
>>>
>>> much regards
>
>
> --
> Faysal Al-Banna
> Meteorological Department
> Civil Aviation
> Rafic Harriri International Airport
> Beirut - Lebanon
> Tel: +961-1-628000 Ext: 2000
> Mobile: +961-3-258043
--
*Faysal Al-Banna*
Meteorological Department
Civil Aviation
Rafic Harriri International Airport
Beirut - Lebanon
Tel: +961-1-628000 Ext: 2000
_Mobile: +961-3-258043_
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en