Add the right module

This commit is contained in:
Salt 2020-04-30 06:21:25 -05:00
parent 4117fef790
commit 0e9b43438b
2 changed files with 8 additions and 1 deletions

View File

@ -21,6 +21,12 @@
login_password: "{{ mysql_root_password }}" login_password: "{{ mysql_root_password }}"
- name: Set up Apache - name: Set up Apache
block: block:
- name: Enable modules
command:
cmd: a2enmod "{{ item }}"
creates: "/etc/apache2/mods-enabled/{{ item }}.load"
loop:
- proxy
- name: Template out vhost - name: Template out vhost
template: template:
src: "apache2-vhost-ssl.conf" src: "apache2-vhost-ssl.conf"

View File

@ -21,7 +21,8 @@ SSLStrictSNIVHostCheck off
AllowOverride All AllowOverride All
Options MultiViews FollowSymlinks Options MultiViews FollowSymlinks
</Directory> </Directory>
ProxyRequests off ProxyPreserveHost On
ProxyRequests Off
ProxyPass / https://127.0.0.1:3000/ nocanon ProxyPass / https://127.0.0.1:3000/ nocanon
ProxyPassReverse / https://127.0.0.1:3000/ ProxyPassReverse / https://127.0.0.1:3000/