If I understand you correctly, you want to deploy your rails app to
sub-uri. There's a how-to in passenger documentation:
http://www.modrails.com/documentation/Users%20guide%20Apache.html#deploying_rails_to_sub_uri

I think you don't have to put ServerName xxx.xxx.xx.xx at all in your
VirtualHost file, because ServerName is a host name not an ip address:
http://httpd.apache.org/docs/2.2/mod/core.html#servername

you should put the passenger config in a default virtualhost for your
apache installation.

     Hi Martins,

       yes, you understand me correctly :)

       I checked the links which you provide and its very helpful to me and
i solved my problem.

Thanks!
Saravanan P





On Fri, Jan 24, 2014 at 1:54 PM, Mārtiņš Poļakovs <
[email protected]> wrote:

> Hi,
>
> If I understand you correctly, you want to deploy your rails app to
> sub-uri. There's a how-to in passenger documentation:
> http://www.modrails.com/documentation/Users%20guide%20Apache.html#deploying_rails_to_sub_uri
>
> I think you don't have to put ServerName xxx.xxx.xx.xx at all in your
> VirtualHost file, because ServerName is a host name not an ip address:
> http://httpd.apache.org/docs/2.2/mod/core.html#servername
>
> you should put the passenger config in a default virtualhost for your
> apache installation.
>
>
>
> On Wednesday, January 22, 2014 1:04:50 PM UTC+2, saravanan p wrote:
>>
>> Hi,
>>
>> Good evening!
>>
>> Is that possible to point like below
>>
>> <VirtualHost *:80>
>>   ServerName *xxx.xxx.xx.x/mysite * #server ip address
>>   DocumentRoot /path/to/projects/public
>>   RailsEnv development
>>   <Directory /path/to/projects/public>
>>     AllowOverride all
>>     Options -MultiViews
>>   </Directory>
>> </VirtualHost>
>>
>> and Can I access *xxx.xxx.xx.x/mysite *in my browser? I tries this but
>> its doesn't work...
>>
>> // hosts file
>> xxx.xxx.xx.x   xxx.xxx.xx.x/mysite
>>
>> is this possible or we have to give only name (domain name) ? i.e
>> example.com/mysite
>>
>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/acaaea8c-528d-4f45-8952-81414b46e681%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAOxyzk27Vx%2BvSAzzbt590ivP0NUzi_ahk324D5-A_TV_ZDVBaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to