vhosts ?

21 views
Skip to first unread message

daslicht

unread,
May 4, 2013, 12:11:17 PM5/4/13
to ged...@googlegroups.com
Hello,
how do manage multiple Domain or Sub Domain Names with Geddy ?
Is it possible?

Best Regards
Marc

Matthew Eernisse

unread,
May 4, 2013, 8:31:21 PM5/4/13
to ged...@googlegroups.com
There's nothing specific built in to Geddy for that, but you can certainly write logic into your app to work with different domains.

With a Geddy app running on Node v0.10, you can access the 'host' HTTP header for the request at `this.request.headers.host` (where `this` is the controller). See http://en.wikipedia.org/wiki/List_of_HTTP_header_fields for info on the header fields.

I'm not sure what you're trying to do. I have successfully used Nginx in front of different domains, each with their own Geddy app, but never needed a multi-domain app.


--
The official community discussion group.
website: geddyjs.org, source: https://github.com/mde/geddy, group: https://groups.google.com/d/forum/geddyjs?hl=en
---
You received this message because you are subscribed to the Google Groups "GeddyJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geddyjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

daslicht

unread,
May 5, 2013, 5:59:30 AM5/5/13
to ged...@googlegroups.com
Hello Thank you very much for you answer,
I am just trying to find out how to use more than one Geddy app on one Server with just one IP.

So you suggest using a web server in-front of  multiple geddy apps Geddy apps  ?
Do you have any further reading sggestiuons for me please?

der_On

unread,
May 6, 2013, 7:52:46 AM5/6/13
to ged...@googlegroups.com
I would also recommend to launch multiple geddy apps on different ports and then route/rewrite URLs to them using a webserver like apache or nginx from port 80.


Reply all
Reply to author
Forward
0 new messages