Using Monologue on subdomain ?

31 views
Skip to first unread message

thomasbe...@gmail.com

unread,
Sep 17, 2013, 5:39:23 AM9/17/13
to monolo...@googlegroups.com
Hi,

I was wondering if Monologue could be mounted on a subdomain.
Currently I'm trying to but it's not working.
I looked all the sites where Monologue is mounted and they're all mounted at "/blog".
Does Monologue provide this feature ?

Cordially,
Thomas.

Michael Sevestre

unread,
Sep 17, 2013, 7:41:26 AM9/17/13
to thomasbe...@gmail.com, monolo...@googlegroups.com

Hi Thomas,

You mean something like news.my domain.com?

In that case, wouldn't the DNS settings be the only thing that needs to be setup?

Michael

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

Jean-Philippe Boily

unread,
Sep 17, 2013, 7:44:52 AM9/17/13
to Michael Sevestre, thomasbe...@gmail.com, monolo...@googlegroups.com
Hey Thomas,
if you question is specifically "can Monologue be mounted at root of whatever domain?". Then yes, you can mount it at "/" instead of "/blog".

mount Monologue::Engine, at: '/' # or whatever path, be it "/blog" or "/monologue"

In that example, taken from the README, it is mounted at root. Then, it depends how your hosting is setup, but it should not be hard to work from there.

Is that what you meant?


Jean-Philippe Boily

Thomas Bentkowski

unread,
Sep 17, 2013, 8:15:57 AM9/17/13
to Jean-Philippe Boily, Michael Sevestre, monolo...@googlegroups.com
Hi, 

What I want to do is to mount monologue this way :

blog.mydomain.com

In my routes.rb I have got something like this :

scope :subdomain => 'blog' do
        mount Monologue::Engine, :at => '/'
  end

But when I try for example :

blog.localhost.com

it redirects me to localhost.com.

By the way, thanks for your rapidity :)
--
Thomas Bentkowski
Web Developer, Student @SUP'internet
Reply all
Reply to author
Forward
0 new messages