diff --git a/defaults/main.yml b/defaults/main.yml
index 4acdfce..09be670 100644
--- a/defaults/main.yml
+++ b/defaults/main.yml
@@ -42,3 +42,6 @@ apache_mods_disabled: []
# Set initial apache state. Recommended values: `started` or `stopped`
apache_state: started
+
+# To enable event MPM, change to true
+apache_enable_event_mpm: false
diff --git a/tasks/configure-RedHat.yml b/tasks/configure-RedHat.yml
index 0c3a01f..7188e54 100644
--- a/tasks/configure-RedHat.yml
+++ b/tasks/configure-RedHat.yml
@@ -22,3 +22,22 @@
mode: 0644
notify: restart apache
when: apache_create_vhosts
+
+- name: Change to Event MPM
+ template:
+ src: "00-mpm.conf.j2"
+ dest: "{{ apache_modules_path }}/00-mpm.conf"
+ owner: root
+ group: root
+ mode: 0644
+ notify: restart apache
+ when: apache_enable_event_mpm
+
+- name: Activate RemoteIP module
+ template:
+ src: "90-remoteip.conf.j2"
+ dest: "{{ apache_modules_path }}/90-remoteip.conf"
+ owner: root
+ group: root
+ mode: 0644
+ notify: restart apache
diff --git a/templates/00-mpm.conf.j2 b/templates/00-mpm.conf.j2
new file mode 100644
index 0000000..6b0f8e2
--- /dev/null
+++ b/templates/00-mpm.conf.j2
@@ -0,0 +1 @@
+LoadModule mpm_event_module modules/mod_mpm_event.so
diff --git a/templates/90-remoteip.conf.j2 b/templates/90-remoteip.conf.j2
new file mode 100644
index 0000000..f78d835
--- /dev/null
+++ b/templates/90-remoteip.conf.j2
@@ -0,0 +1,10 @@
+
+ LoadModule remoteip_module modules/mod_remoteip.so
+
+
+
+ LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
+
+ RemoteIPHeader X-Real-IP
+ RemoteIPInternalProxy 127.0.0.1/8
+
diff --git a/vars/RedHat.yml b/vars/RedHat.yml
index d79fa5a..94cd0d0 100644
--- a/vars/RedHat.yml
+++ b/vars/RedHat.yml
@@ -4,6 +4,7 @@ apache_daemon: httpd
apache_daemon_path: /usr/sbin/
apache_server_root: /etc/httpd
apache_conf_path: /etc/httpd/conf.d
+apache_modules_path: /etc/httpd/conf.modules.d
apache_vhosts_version: "2.2"