05-18-2020, 03:19 PM
(This post was last modified: 05-18-2020, 03:20 PM by remkonoteboom.)
"I guess part of my question is about things like Apache Virtual Hosts and Directives like "DocumentRoot" and "ServerName" and why these Directives are absent from tactic.conf (perhaps because all apache is doing is referring to TACTIC?)."
The tactic.conf file works in addition to, not in place of the httpd.conf file for apache. The folder /etc/httpd/conf.d folder for RedHat style distributions is the location that is used for modules. This path may vary depending on the distribution and even version of distribution. Ubuntu as I recall from a while ago is different, but there is a standard location. This link:
https://www.digitalocean.com/community/t...debian-vps
seems to indicate that it is /etc/apache2/conf.d. At any rate the tactic.conf file does not need a DocumentRoot because apache communicates with TACTIC through a reverse proxy through the load balancer. These are the lines that handle this:
The last line is what redirects "/" which is the equivalent to DocumentRoot and sends it to the balancer.
The tactic.conf file works in addition to, not in place of the httpd.conf file for apache. The folder /etc/httpd/conf.d folder for RedHat style distributions is the location that is used for modules. This path may vary depending on the distribution and even version of distribution. Ubuntu as I recall from a while ago is different, but there is a standard location. This link:
https://www.digitalocean.com/community/t...debian-vps
seems to indicate that it is /etc/apache2/conf.d. At any rate the tactic.conf file does not need a DocumentRoot because apache communicates with TACTIC through a reverse proxy through the load balancer. These are the lines that handle this:
Code:
# Using the ProxyPass directives
<Proxy balancer://tactic>
BalancerMember http://localhost:8081/tactic
BalancerMember http://localhost:8082/tactic
BalancerMember http://localhost:8083/tactic
</Proxy>
ProxyPass /assets !
ProxyPass /context !
Proxypass /doc !
ProxyPass /tactic balancer://tactic/
ProxyPass /projects balancer://tactic/
ProxyPass / balancer://tactic/
The last line is what redirects "/" which is the equivalent to DocumentRoot and sends it to the balancer.