apache, nginx etc... can certainly forward the request to different places based on the url (and other things). Where things might get complicated is to what extent your php bits and your rails bits will need to share information
Fred
apache, nginx etc... can certainly forward the request to different places based on the url (and other things). Where things might get complicated is to what extent your php bits and your rails bits will need to share information
Fred
Frederick Cheung wrote:
apache, nginx etc... can certainly forward the request to different places based on the url (and other things). Where things might get complicated is to what extent your php bits and your rails bits will need to share information
Fred
thx Fred
i have one more problem i want to create subdomain for their profile url accordingly to user_name
for example i have url (http://localhost:3000/)
if any person login as "user_name" then his profile page url should be http://user_name.localhost:3000/
any idea ?
Frederick Cheung wrote:
apache, nginx etc... can certainly forward the request to different places based on the url (and other things). Where things might get complicated is to what extent your php bits and your rails bits will need to share information
Fred
thx Fred
i have one more problem i want to create subdomain for their profile url accordingly to user_name
for example i have url (http://localhost:3000/)
if any person login as "user_name" then his profile page url should be http://user_name.localhost:3000/
Well I'm not sure how you'd do it in development, but in the real
world you can setup a wildcard dns entry. There's a railscast on
handling subdomains if my memory is correct.
Fred
Hey guys I’ll leave this two links here if you’re interested in working with subdomains:
http://www.robbyonrails.com/articles/2009/01/11/subdomain-accounts-with-ruby-on-rails-explained
Fred,
Do you think it is possible to have a <div> section within a php page that can get content from a rails application? I want to keep php as the main backbone for the overall application, but have some sections get content from rails application. Will appreciate any help.
Thanks ravigit
Fred,
Do you think it is possible to have a <div> section within a php page that can get content from a rails application? I want to keep php as the main backbone for the overall application, but have some sections get content from rails application. Will appreciate any help.
As I understand things You've basically got 3 options - populate that
div client side with an ajax request, have an iframe that will make a
request to the rails bit or have your php server side code make a
request to your rails app and insert the html serverside.
Fred