Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
simple chat : helloworld.html on client side and not on server side.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
yarek chmielewski  
View profile  
 More options Jul 25 2012, 1:41 pm
From: yarek chmielewski <yar...@gmail.com>
Date: Wed, 25 Jul 2012 10:41:15 -0700 (PDT)
Local: Wed, Jul 25 2012 1:41 pm
Subject: simple chat : helloworld.html on client side and not on server side.

Hello
I got running the simple chat sample on my server.
Great !
My problem is : the client part (the HTML page) is infact on the server
(the helloworld.html).

Is is possible to run it locally ? like file:/// and not be hosted on
server !

regards


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nate Morse  
View profile  
 More options Jul 25 2012, 2:41 pm
From: Nate Morse <morse.n...@gmail.com>
Date: Wed, 25 Jul 2012 14:41:56 -0400
Local: Wed, Jul 25 2012 2:41 pm
Subject: Re: [NowJS] simple chat : helloworld.html on client side and not on server side.

I think that you will run into a browser security violation.  To have a
file:/// system serve a page, and then try to access other server(s) via
ajax/sockets. The idea is... it protects you from downloading HTML and
clicking on it and running some untrusted code that goes out to the
internet.
I think that you may have to set up a node.js server on you local
machine...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yarek chmielewski  
View profile  
 More options Jul 25 2012, 6:22 pm
From: yarek chmielewski <yar...@gmail.com>
Date: Wed, 25 Jul 2012 15:22:42 -0700 (PDT)
Local: Wed, Jul 25 2012 6:22 pm
Subject: Re: simple chat : helloworld.html on client side and not on server side.

> ok, forget about file://

what about http:// access ?

My idea is to run this chat sample on normal 80 port and not using a
special port.
Is that possible ?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jay Are Galinada  
View profile  
 More options Jul 26 2012, 4:47 am
From: Jay Are Galinada <jayaregalin...@gmail.com>
Date: Thu, 26 Jul 2012 01:47:33 -0700 (PDT)
Local: Thurs, Jul 26 2012 4:47 am
Subject: Re: simple chat : helloworld.html on client side and not on server side.

Noong Huwebes, Hulyo 26 2012 06:22:42 UTC+8, si yarek chmielewski ay
sumulat:

> ok, forget about file://

> what about http:// access ?

> My idea is to run this chat sample on normal 80 port and not using a
> special port.
> Is that possible ?

Yes, it is possible to run the your nodejs server in port 80
as long as no other programs/services using that port, and incoming and
outgoing 80 port is open to your system.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
khinester  
View profile  
 More options Aug 9 2012, 3:41 pm
From: khinester <nor...@khine.net>
Date: Thu, 9 Aug 2012 12:41:19 -0700 (PDT)
Local: Thurs, Aug 9 2012 3:41 pm
Subject: Re: simple chat : helloworld.html on client side and not on server side.

Or you can put it behind nginx like:

server {
        server_name  now.local;
        # All R-ead URI's point to 19080 instance
        location / {
            proxy_pass http://127.0.0.1:19080;
            proxy_set_header        Host            $host;
            proxy_set_header        X-Real-IP       $remote_addr;
            proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
        }
        # Adding the nodejs proxy
        location ~* "(/stat/1.gif|/now|/config.json)" {
            proxy_pass http://127.0.0.1:29080;
            proxy_set_header        Host            $host;
            proxy_set_header        X-Real-IP       $remote_addr;
            proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;

        }

So in the above case, anything pointing to /stat/1.gif|/now|/config.json is
proxied to http://127.0.0.1:29080
And anything else is proxied to a different application, in my case ikaaro
running on 19080.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »