For anyone who tries to do this, it was just a few lines:
https://gist.github.com/konklone/5006662

On Monday, April 25, 2011 10:09:33 AM UTC-4, Francois Laberge wrote:
>
> Thanks. It communicates over wifi so typically it takes about 1/150th of a 
> second to communicate.
>
> Francois
>
> On Mon, Apr 25, 2011 at 7:07 AM, Marcello Bastéa-Forte <
> marc...@cellosoft.com <javascript:>> wrote:
>
>> Francois: that project looks really neat. What is the latency like?
>>
>> Marcello
>>
>>
>> On Mon, Apr 25, 2011 at 2:34 AM, Francois Laberge 
>> <fran...@emotely.com<javascript:>
>> > wrote:
>>
>>> Thanks, that was it. Now I have my /blog/ proxied to an Apache server, 
>>> and my www.emotely.com urls 301 redirecting to the canonical emotely.com
>>> .
>>>
>>> Appreciated. I'd moved on to other things, but I'm glad to put it to bed.
>>>
>>> Francois
>>>
>>>
>>> On Sun, Apr 24, 2011 at 8:35 PM, Marco Rogers 
>>> <marco....@gmail.com<javascript:>
>>> > wrote:
>>>
>>>> I don't know a lot about http-proxy but doing redirects with the normal 
>>>> http server is easy.
>>>>
>>>>  https://gist.github.com/940119
>>>>
>>>> You just have to make sure you give the Location: header. Also, the 
>>>> browser will cache these so I added a past Expires: header for testing. I 
>>>> assume you would want to leave that out and let it cache in the general 
>>>> case.
>>>>
>>>> In my test i'm checking the url path, but you could easily switch on 
>>>> the server host or whatever.
>>>>
>>>> :Marco
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "nodejs" group.
>>>> To post to this group, send email to nod...@googlegroups.com<javascript:>
>>>> .
>>>> To unsubscribe from this group, send email to 
>>>> nodejs+un...@googlegroups.com <javascript:>.
>>>> For more options, visit this group at 
>>>> http://groups.google.com/group/nodejs?hl=en.
>>>>
>>>
>>>
>>>
>>> -- 
>>> *Founder of Emotely <http://emotely.com/#!/>*
>>> *
>>>  
>>> <http://twitter.com/#!/emotely><http://www.linkedin.com/company/emotely><http://facebook.com/emotely>
>>> *
>>> *
>>> Phone: 
>>> *
>>> *
>>> 919 259 3004
>>> Address:
>>> *
>>> 2735 Mission Street - Apt. 25
>>> San Francisco, CA
>>> 94110
>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "nodejs" group.
>>> To post to this group, send email to nod...@googlegroups.com<javascript:>
>>> .
>>> To unsubscribe from this group, send email to 
>>> nodejs+un...@googlegroups.com <javascript:>.
>>> For more options, visit this group at 
>>> http://groups.google.com/group/nodejs?hl=en.
>>>
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "nodejs" group.
>> To post to this group, send email to nod...@googlegroups.com<javascript:>
>> .
>> To unsubscribe from this group, send email to 
>> nodejs+un...@googlegroups.com <javascript:>.
>> For more options, visit this group at 
>> http://groups.google.com/group/nodejs?hl=en.
>>
>
>
>
> -- 
> *Founder of Emotely <http://emotely.com/#!/>*
> *
>  <http://twitter.com/#!/emotely> 
> <http://www.linkedin.com/company/emotely><http://facebook.com/emotely>
> *
> *
> Phone: 
> *
> *
> 919 259 3004
> Address:
> *
> 2735 Mission Street - Apt. 25
> San Francisco, CA
> 94110
>
> 

-- 
-- 
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

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


Reply via email to