On Jan 22, 2014, at 6:04 AM, saravanan p wrote:
> Hi,
>
> Good evening!
>
> Is that possible to point like below
It sounds like you are setting this up for localhost viewing, or on a local
network. My answers are somewhat specific to this, particularly the part about
your hosts file.
>
> <VirtualHost *:80>
> ServerName xxx.xxx.xx.x/mysite #server ip address
ServerName takes a hostname, not an IP address or path. Try mysite.com instead.
> DocumentRoot /path/to/projects/public
If your Rails app is called "Projects", then this line looks correct.
> RailsEnv development
> <Directory /path/to/projects/public>
Ditto, this path should match the DocumentRoot line.
> 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...
If you had set up the server to respond to mysite.com, and the server was
running, then you would point your browser to mysite.com/ and see whatever you
had configured your root path to be.
>
> // hosts file
> xxx.xxx.xx.x xxx.xxx.xx.x/mysite
In your hosts file, you would put
xxx.xxx.xxx.xxx mysite.com
A DNS record like this would point *from* an IP *to* a virtual host. In
production, you would set up your public server to respond to your actual
domain name, and you would have your DNS hosting provider point your domain to
the public IP address of your actual server.
Walter
>
> 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/2245414e-0771-46c2-93ec-d75c85c96f31%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/0988EDE1-DB38-4B72-85EB-BF2B871E3DA7%40wdstudio.com.
For more options, visit https://groups.google.com/groups/opt_out.