Apache: enabled & configured mod_remoteip
This module makes it possible to do access control & logging based on client's real IP address, rather than the internal IP address of HaProxy.
This commit is contained in:
@@ -38,8 +38,9 @@ ENV USE_X_SENDFILE True
|
||||
EXPOSE 80
|
||||
EXPOSE 5000
|
||||
|
||||
ADD apache/remoteip.conf /etc/apache2/mods-available/
|
||||
ADD apache/wsgi-py36.* /etc/apache2/mods-available/
|
||||
RUN a2enmod rewrite && a2enmod wsgi-py36
|
||||
RUN a2enmod remoteip & a2enmod rewrite && a2enmod wsgi-py36
|
||||
|
||||
ADD apache/apache2.conf /etc/apache2/apache2.conf
|
||||
ADD apache/000-default.conf /etc/apache2/sites-available/000-default.conf
|
||||
|
Reference in New Issue
Block a user