Thanks Norbert

I intended to use the Plesk API to add the new subdomain and the new
subdomain ghost.conf, then exec reconfig domain and reload Apache...
( the way we use to do manually in Plesk console)  but it's quite
heavy work...
I found how to setup wild card w Plesk ... :   http://kb.parallels.com/2239
(quite weird..)
and it's running fine ....  can access any sub-domain....

Thanks a lot for your feedback !

On Nov 16, 7:24 am, Norbert Melzer <[email protected]> wrote:
> 2011/11/15 Erwin <[email protected]>:
>
> > During execution in my Rails web app, I need to create a virtual host
> > config on my Linux server, but I don't know what would be the best way
> > to do it , here are the steps  ( my_domain.com is fixed, only
> > my_subdomain is changing dynamically
>
> I tried something similar in my PHP-days.
>
> You really should not do that!
>
> 1.) Plesk would not be aware of that subdomain
> 2.) Plesk could overwrite or delete the manually added configs when
> trying to add the subdomain in Plesk
>
> That are the main problems I stumbled upon that time.
>
> The way with wild card domains all going to your rails app are much
> better. But I cant remember how to set them up in Plesk.
>
> But with the Railspart <http://railscasts.com/episodes/123-subdomains>
> could help.
>
> HTH
> Norbert

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to