Hassan,
I don't think I am using anything but Apache and Rails.
How can I tell?
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?
I list my /etc/apache2/sites-available/ThisWorks.com.conf file below.
Thank you for pointing me at the documentation. I'm going through it now.
Is there a book you can point me at that goes through this stuff in much greater detail?
<VirtualHost ThisWorks.asuscomm.com:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin ralphs@dos32.com
DocumentRoot /var/www/ThisWorks.com/public_html
# ServerName /var/www/test.com/public_html
ServerName ThisWorks.asuscomm.com.com
ServerAlias www.ThisWorks.asuscomm.com
ServerAlias www.ThisWorks.com
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Ralph
Saturday, July 7, 2018, 11:41:24 AM, you wrote:
HS> On Sat, Jul 7, 2018 at 10:22 AM, Ralph Shnelvar <ralphs@dos32.com> wrote:
>> I'm not sure what "different virtual hosts" means.
>> What I have are two domains I have purchased. Call them www.ThisWorks.com
>> and www.ThisIsNewAndDoesNotWorkYet.com.
HS> A single Apache httpd instance listening on a single IP address can
HS> handle multiple "virtual hosts", e.g. different domains as above.
HS> https://httpd.apache.org/docs/2.4/vhosts/
HS> The question is how are you doing the current single domain? Are
HS> you using mod_proxy to forward to an app running on e.g. Puma,
HS> or are you using Passenger?
HS> If the former, it's easy to have each virtual host have its own proxy
HS> settings defined.
HS> https://httpd.apache.org/docs/2.4/mod/mod_proxy.html
HS> --
HS> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
HS> twitter: @hassan
HS> Consulting Availability : Silicon Valley or remote
Ralph
No comments:
Post a Comment