Hassan,
I start Apache via ...
sudo apache2ctl start
In terms of sites-available ... where do I find the default host?
I do see something called
/etc/apache2/sites-available
Does Apache look at all the *.conf files? If not, how does it know which .conf file to look at?
Ralph
Saturday, July 7, 2018, 2:01:08 PM, you wrote:
HS> On Sat, Jul 7, 2018 at 12:10 PM, Ralph Shnelvar <ralphs@dos32.com> wrote:
>> I don't think I am using anything but Apache and Rails.
>> How can I tell?
HS> How do you start your app on this server? `rails s` or ... ?
>> One of the things that is confusing me is I have a file
>> /etc/apache2/sites-available/ThisWorks.com.conf
>> How does Apache know which *.conf file to use?
HS> The VirtualHost/ServerName/ServerAlias directives -- if you tried
HS> to access a different hostname on that same IP address it would
HS> just show the default host (from sites-available).
>> Is there a book you can point me at that goes through this stuff in much
>> greater detail?
HS> I have no idea about a book; there are probably lots of tutorials out
HS> there. The config files are super well-commented, though, and I'd
HS> just start there, along with the online docs.
HS> Note: the Apache httpd is based on Rob McCool's original NCSA
HS> server circa 1993 so it's pretty "battle-tested" and that includes the
HS> documentation :-)
HS> --
HS> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
HS> twitter: @hassan
HS> Consulting Availability : Silicon Valley or remote
Ralph
No comments:
Post a Comment