On Sat, Jul 7, 2018 at 1:12 PM, Ralph Shnelvar <ralphs@dos32.com> wrote:
> I start Apache via ...
> sudo apache2ctl start
But that's not starting Rails, unless you're running it via CGI
which TBH is something I've never seen. Generally you'd be
using mod_proxy to forward requests to your Rails apps.
> In terms of sites-available ... where do I find the default host?
> I do see something called
> /etc/apache2/sites-available
You probably have a file called ~ '000-default.conf' with the
directive <VirtualHost *:80> -- notice the lack of hostname
and the wildcard * where you'd expect a name.
> Does Apache look at all the *.conf files? If not, how does it know which
> .conf file to look at?
It loads all config at initialization and then matches the http request
Host header to the server name.
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCagovXDtZkdRuaqPrJHo1Wuct5R%3DkEJ_0rf%3DmAMyK2vg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment